From: Luciano Coelho Date: Wed, 4 Aug 2010 00:46:22 +0000 (+0300) Subject: wl1271: remove useless 11a check when scanning X-Git-Tag: v2.6.37-rc1~147^2~191^2^2~34^2~30 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5924f89d6597cd7ba014128ded64b2c7450c369c;p=karo-tx-linux.git wl1271: remove useless 11a check when scanning This code was a leftover of the previous scanning mechanism. The if is totally unnecessary, since both branches do the same thing. Signed-off-by: Luciano Coelho Reviewed-by: Juuso Oikarinen --- diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 02ad6c648115..b42ee484a86f 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c @@ -1624,10 +1624,7 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw, if (ret < 0) goto out; - if (wl1271_11a_enabled()) - ret = wl1271_scan(hw->priv, ssid, len, req); - else - ret = wl1271_scan(hw->priv, ssid, len, req); + ret = wl1271_scan(hw->priv, ssid, len, req); wl1271_ps_elp_sleep(wl);