summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Coelho2012-01-24 10:46:32 +0100
committerLuciano Coelho2012-02-15 07:38:29 +0100
commit775e1a4bd57a117ae181afebf59e26fa072db6a8 (patch)
treea716440a9f224f34ef2b477d7768afa997a8508c
parentwl12xx: add testmode operation to read the BD_ADDR from Fuse ROM (diff)
downloadkernel-qcow2-linux-775e1a4bd57a117ae181afebf59e26fa072db6a8.tar.gz
kernel-qcow2-linux-775e1a4bd57a117ae181afebf59e26fa072db6a8.tar.xz
kernel-qcow2-linux-775e1a4bd57a117ae181afebf59e26fa072db6a8.zip
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: Luciano Coelho <coelho@ti.com>
-rw-r--r--drivers/net/wireless/wl12xx/event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c
index d3280df68f5d..cfc38ea21e4a 100644
--- a/drivers/net/wireless/wl12xx/event.c
+++ b/drivers/net/wireless/wl12xx/event.c
@@ -344,7 +344,6 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
/* TODO: configure only the relevant vif */
wl12xx_for_each_wlvif_sta(wl, wlvif) {
- struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
bool success;
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;
success = mbox->channel_switch_status ? false : true;
+ vif = wl12xx_wlvif_to_vif(wlvif);
+
ieee80211_chswitch_done(vif, success);
}
}