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 7a4ae9e..bd1f0cb 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;