Commit 775e1a4b authored by Luciano Coelho's avatar Luciano Coelho
Browse files

wl12xx: remove unnecessary shadow declaration



The vif variable was being declared inside one of the internal blocks
of wl1271_event_process.  This is not necessary, since this variable
is already declared in the function context.

Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 75f25548
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -344,7 +344,6 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)


		/* TODO: configure only the relevant vif */
		/* TODO: configure only the relevant vif */
		wl12xx_for_each_wlvif_sta(wl, wlvif) {
		wl12xx_for_each_wlvif_sta(wl, wlvif) {
			struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
			bool success;
			bool success;


			if (!test_and_clear_bit(WLVIF_FLAG_CS_PROGRESS,
			if (!test_and_clear_bit(WLVIF_FLAG_CS_PROGRESS,
@@ -352,6 +351,8 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
				continue;
				continue;


			success = mbox->channel_switch_status ? false : true;
			success = mbox->channel_switch_status ? false : true;
			vif = wl12xx_wlvif_to_vif(wlvif);

			ieee80211_chswitch_done(vif, success);
			ieee80211_chswitch_done(vif, success);
		}
		}
	}
	}