Skip to content

Commit

Permalink
mac80211: Fix sparse warning for ssid_len on ieee80211_sta_config_auth()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed May 6, 2009
1 parent 83f8b47 commit 6cfe62c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -2076,10 +2076,6 @@ static int ieee80211_sta_config_auth(struct ieee80211_sub_if_data *sdata)
return 0;
} else {
if (ifmgd->assoc_scan_tries < IEEE80211_ASSOC_SCANS_MAX_TRIES) {
u8 ssid_len = 0;

if (!(ifmgd->flags & IEEE80211_STA_AUTO_SSID_SEL))
ssid_len = ifmgd->ssid_len;

ifmgd->assoc_scan_tries++;

Expand Down

0 comments on commit 6cfe62c

Please sign in to comment.