[PATCH] libertas: remove adapter->scantype
scantype was initialized with CMD_SCAN_TYPE_ACTIVE, but there is no code that would ever change it, so we can use that variable directly. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
David S. Miller

parent
d65ead886a
commit
4f2fdaaf0e
@@ -1001,9 +1001,6 @@ static void wlan_init_adapter(wlan_private * priv)
|
||||
adapter->connect_status = LIBERTAS_DISCONNECTED;
|
||||
memset(adapter->current_addr, 0xff, ETH_ALEN);
|
||||
|
||||
/* scan type */
|
||||
adapter->scantype = CMD_SCAN_TYPE_ACTIVE;
|
||||
|
||||
/* 802.11 specific */
|
||||
adapter->secinfo.wep_enabled = 0;
|
||||
for (i = 0; i < sizeof(adapter->wep_keys) / sizeof(adapter->wep_keys[0]);
|
||||
|
Reference in New Issue
Block a user