Skip to content

Commit 4bf332c

Browse files
committed
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>
1 parent 63c361f commit 4bf332c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/mac80211/cfg.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,9 +1345,6 @@ static int sta_apply_parameters(struct ieee80211_local *local,
13451345
params->vht_capa, sta);
13461346

13471347
if (params->opmode_notif_used) {
1348-
enum ieee80211_band band =
1349-
ieee80211_get_sdata_band(sdata);
1350-
13511348
/* returned value is only needed for rc update, but the
13521349
* rc isn't initialized here yet, so ignore it
13531350
*/

0 commit comments

Comments
 (0)