]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mac80211: remove superfluous band variable
authorJohannes Berg <johannes.berg@intel.com>
Thu, 6 Feb 2014 15:50:34 +0000 (16:50 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Feb 2014 15:50:34 +0000 (16:50 +0100)
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>
net/mac80211/cfg.c

index 6973ccdd230b88942ba71ceae911fb4d58424279..7f01f2aec7b57e08b61bbabea9147c65eda27d69 100644 (file)
@@ -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
                 */