Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1154431 authored by Wei Yongjun's avatar Wei Yongjun Committed by John W. Linville
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 0c8070f9
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;