net: iwlegacy: remove unused variable
authorGuenter Roeck <linux@roeck-us.net>
Sun, 27 Jan 2013 18:55:41 +0000 (10:55 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jan 2013 20:07:08 +0000 (15:07 -0500)
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>
drivers/net/wireless/iwlegacy/4965.c

index 5db11714e04705cd9f68c061c59dfdab6abecfc6..91eb2d07fdb82aff24b490dc106c10b60f6be6ee 100644 (file)
@@ -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)
@@ -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);