summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rndis_wlan.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-10 15:21:59 +0800
committerJohn W. Linville <linville@tuxdriver.com>2012-09-11 15:31:44 -0400
commitc1154431e3a9ca2ce073b0637a50946941db56a4 (patch)
treed945a7d0957d585511f173c07a88403634466015 /drivers/net/wireless/rndis_wlan.c
parent0c8070f92f483b764623f6d3960a4d69f8911351 (diff)
downloadlinux-c1154431e3a9ca2ce073b0637a50946941db56a4.tar.gz
linux-c1154431e3a9ca2ce073b0637a50946941db56a4.tar.bz2
linux-c1154431e3a9ca2ce073b0637a50946941db56a4.zip
rndis_wlan: remove pointless check from rndis_scan()
In rndis_scan(), 'request' is actually always valid pointer and the !request check is unneeded, so remove it. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rndis_wlan.c')
-rw-r--r--drivers/net/wireless/rndis_wlan.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
index 7a4ae9ee1c63..bd1f0cb56085 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -1959,9 +1959,6 @@ static int rndis_scan(struct wiphy *wiphy,
*/
rndis_check_bssid_list(usbdev, NULL, NULL);
- if (!request)
- return -EINVAL;
-
if (priv->scan_request && priv->scan_request != request)
return -EBUSY;