summaryrefslogtreecommitdiff
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-02-06 19:50:34 +0400
committerJohannes Berg <johannes.berg@intel.com>2014-02-06 19:50:34 +0400
commit4bf332c785bc14e6decb6ea4949a831e7e199b8b (patch)
tree88a384ed4f5a0f50a8b25cee4e929776d9d7731d /net/mac80211/cfg.c
parent63c361f5114d81db789f8f5671c76c228c35b021 (diff)
downloadlinux-4bf332c785bc14e6decb6ea4949a831e7e199b8b.tar.xz
mac80211: remove superfluous band variable
We already have a band variable, so the new one is just shadowing it, but the existing one already holds the same value so just remove the inner one. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 6973ccdd230b..7f01f2aec7b5 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1345,9 +1345,6 @@ static int sta_apply_parameters(struct ieee80211_local *local,
params->vht_capa, sta);
if (params->opmode_notif_used) {
- enum ieee80211_band band =
- ieee80211_get_sdata_band(sdata);
-
/* returned value is only needed for rc update, but the
* rc isn't initialized here yet, so ignore it
*/