Skip to content

Commit

Permalink
mac80211: remove superfluous band variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Feb 6, 2014
1 parent 63c361f commit 4bf332c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4bf332c

Please sign in to comment.