aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-05-05 15:48:39 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-06 15:15:04 -0400
commit6cfe62cd58da862db04d4eb61f218f65b0cedbb3 (patch)
tree67b7f50304e0027d4028e3729578f666873075d5
parent83f8b478ff5ed7d7df0bf91336bbede7b4714771 (diff)
mac80211: Fix sparse warning for ssid_len on ieee80211_sta_config_auth()
net/mac80211/mlme.c:2079:28: warning: symbol 'ssid_len' shadows an earlier one net/mac80211/mlme.c:2022:12: originally declared here ssid_len is already being declared and checked above so there is no need for it again. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--net/mac80211/mlme.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 5509c5aa6beb..75c487229f2e 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2076,10 +2076,6 @@ static int ieee80211_sta_config_auth(struct ieee80211_sub_if_data *sdata)
2076 return 0; 2076 return 0;
2077 } else { 2077 } else {
2078 if (ifmgd->assoc_scan_tries < IEEE80211_ASSOC_SCANS_MAX_TRIES) { 2078 if (ifmgd->assoc_scan_tries < IEEE80211_ASSOC_SCANS_MAX_TRIES) {
2079 u8 ssid_len = 0;
2080
2081 if (!(ifmgd->flags & IEEE80211_STA_AUTO_SSID_SEL))
2082 ssid_len = ifmgd->ssid_len;
2083 2079
2084 ifmgd->assoc_scan_tries++; 2080 ifmgd->assoc_scan_tries++;
2085 2081