Skip to contentSkip to conversation

net: iwlegacy: remove unused variable

PATCH In review Guenter Roeck 2 participants 2 messages Jan 27, 2013 – Jan 28, 2013 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: iwlegacy: remove unused variable

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.

---
 drivers/net/wireless/iwlegacy/4965.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/net/wireless/iwlegacy/4965.c +0 -3
index 5db1171..91eb2d0 100644
@@ -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);
 
Signature · 1 line
1.7.9.7

A message that is not in the archive (sent off-list or not yet received): 1359312941-30661-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org

#2 lore raw
Quoted 8 lines · Guenter Roeck

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.

ACK
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html