rndis_wlan: remove pointless check from rndis_scan()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 10 Sep 2012 07:21:59 +0000 (15:21 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Sep 2012 19:31:44 +0000 (15:31 -0400)
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>
drivers/net/wireless/rndis_wlan.c

index 7a4ae9ee1c63057b78d582fd3a94964a6fdea264..bd1f0cb56085ef94eb5e634a7467f1c12e3a3ffb 100644 (file)
@@ -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;