diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-08-02 13:05:53 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:59 -0400 |
commit | e2aa334bee4ae9fe27f26b0732c0443d2f11a8af (patch) | |
tree | 29190b7f924fb7efda2ac1c8cfb12d956de41aa7 /drivers/net/wireless/libertas/scan.c | |
parent | 6e22a855b27ddc0725c134cc428ee668e56ac9f8 (diff) |
[PATCH] libertas: remove adapter->scanprobes
The variable was initialized to 0 and nowhere else to anything
different.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index f471157c02df..7e4b0ab108dc 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -416,8 +416,7 @@ wlan_scan_setup_scan_config(wlan_private * priv, | |||
416 | scanmode); | 416 | scanmode); |
417 | 417 | ||
418 | /* Set the number of probes to send, use adapter setting if unset */ | 418 | /* Set the number of probes to send, use adapter setting if unset */ |
419 | numprobes = (puserscanin->numprobes ? puserscanin->numprobes : | 419 | numprobes = puserscanin->numprobes ? puserscanin->numprobes : 0; |
420 | adapter->scanprobes); | ||
421 | 420 | ||
422 | /* | 421 | /* |
423 | * Set the BSSID filter to the incoming configuration, | 422 | * Set the BSSID filter to the incoming configuration, |
@@ -450,7 +449,7 @@ wlan_scan_setup_scan_config(wlan_private * priv, | |||
450 | } | 449 | } |
451 | } else { | 450 | } else { |
452 | pscancfgout->bsstype = adapter->scanmode; | 451 | pscancfgout->bsstype = adapter->scanmode; |
453 | numprobes = adapter->scanprobes; | 452 | numprobes = 0; |
454 | } | 453 | } |
455 | 454 | ||
456 | /* If the input config or adapter has the number of Probes set, add tlv */ | 455 | /* If the input config or adapter has the number of Probes set, add tlv */ |