diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-09-10 09:21:59 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-11 21:31:44 +0200 |
commit | c1154431e3a9ca2ce073b0637a50946941db56a4 (patch) | |
tree | d945a7d0957d585511f173c07a88403634466015 /drivers/net/wireless/rndis_wlan.c | |
parent | ath9k: Add PCI ID for AR9565 (diff) | |
download | linux-c1154431e3a9ca2ce073b0637a50946941db56a4.tar.xz 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.c | 3 |
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; |