瀏覽代碼

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>
Johannes Berg 11 年之前
父節點
當前提交
4bf332c785
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      net/mac80211/cfg.c

+ 0 - 3
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
 		 */