Skip to content

Commit

Permalink
rndis_wlan: remove pointless check from rndis_scan()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and John W. Linville committed Sep 11, 2012
1 parent 0c8070f commit c115443
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/rndis_wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c115443

Please sign in to comment.