Skip to content

Commit

Permalink
wl12xx: remove unnecessary shadow declaration
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luciano Coelho committed Feb 15, 2012
1 parent 75f2554 commit 775e1a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/wl12xx/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,15 @@ 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,
&wl->flags))
continue;

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

ieee80211_chswitch_done(vif, success);
}
}
Expand Down

0 comments on commit 775e1a4

Please sign in to comment.