[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>
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index f471157..7e4b0ab 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -416,8 +416,7 @@
scanmode);
/* Set the number of probes to send, use adapter setting if unset */
- numprobes = (puserscanin->numprobes ? puserscanin->numprobes :
- adapter->scanprobes);
+ numprobes = puserscanin->numprobes ? puserscanin->numprobes : 0;
/*
* Set the BSSID filter to the incoming configuration,
@@ -450,7 +449,7 @@
}
} else {
pscancfgout->bsstype = adapter->scanmode;
- numprobes = adapter->scanprobes;
+ numprobes = 0;
}
/* If the input config or adapter has the number of Probes set, add tlv */