mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 07:51:16 -04:00
Staging: rtl8192u: Simplify if condition
This patch removes macro true from if condition since variable priv->ieee80211->LinkDetectInfo.bBusyTraffic is already of type bool. Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
eb7403756f
commit
956ff8213b
@@ -335,7 +335,7 @@ static int r8192_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
|
||||
if (!priv->up)
|
||||
return -ENETDOWN;
|
||||
|
||||
if (priv->ieee80211->LinkDetectInfo.bBusyTraffic == true)
|
||||
if (priv->ieee80211->LinkDetectInfo.bBusyTraffic)
|
||||
return -EAGAIN;
|
||||
if (wrqu->data.flags & IW_SCAN_THIS_ESSID) {
|
||||
struct iw_scan_req *req = (struct iw_scan_req *)b;
|
||||
|
||||
Reference in New Issue
Block a user