Skip to content

Commit

Permalink
net: iwlegacy: remove unused variable
Browse files Browse the repository at this point in the history
Fix:

drivers/net/wireless/iwlegacy/4965.c: In function ‘il4965_post_associate’:
drivers/net/wireless/iwlegacy/4965.c:1751:25: warning: variable ‘conf’ set but
not used [-Wunused-but-set-variable]

seen when building allmodconfig on x86_64 with W=1 by removing the unused
variable.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Guenter Roeck authored and John W. Linville committed Jan 30, 2013
1 parent 00bcd0d commit 44ceaf3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/iwlegacy/4965.c
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,6 @@ static void
il4965_post_associate(struct il_priv *il)
{
struct ieee80211_vif *vif = il->vif;
struct ieee80211_conf *conf = NULL;
int ret = 0;

if (!vif || !il->is_open)
Expand All @@ -1759,8 +1758,6 @@ il4965_post_associate(struct il_priv *il)

il_scan_cancel_timeout(il, 200);

conf = &il->hw->conf;

il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il_commit_rxon(il);

Expand Down

0 comments on commit 44ceaf3

Please sign in to comment.