|
@@ -1270,7 +1270,7 @@ static int ieee80211_vif_use_reserved_switch(struct ieee80211_local *local)
|
|
|
struct ieee80211_sub_if_data *sdata, *sdata_tmp;
|
|
|
struct ieee80211_chanctx *ctx, *ctx_tmp, *old_ctx;
|
|
|
struct ieee80211_chanctx *new_ctx = NULL;
|
|
|
- int i, err, n_assigned, n_reserved, n_ready;
|
|
|
+ int err, n_assigned, n_reserved, n_ready;
|
|
|
int n_ctx = 0, n_vifs_switch = 0, n_vifs_assign = 0, n_vifs_ctxless = 0;
|
|
|
|
|
|
lockdep_assert_held(&local->mtx);
|
|
@@ -1391,8 +1391,6 @@ static int ieee80211_vif_use_reserved_switch(struct ieee80211_local *local)
|
|
|
* Update all structures, values and pointers to point to new channel
|
|
|
* context(s).
|
|
|
*/
|
|
|
-
|
|
|
- i = 0;
|
|
|
list_for_each_entry(ctx, &local->chanctx_list, list) {
|
|
|
if (ctx->replace_state != IEEE80211_CHANCTX_REPLACES_OTHER)
|
|
|
continue;
|