Staging: rtl8192u: Simplify if condition
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Thu, 12 Mar 2015 16:29:35 +0000 (17:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 15:20:26 +0000 (16:20 +0100)
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>
drivers/staging/rtl8192u/r8192U_wx.c

index b5a26f34b864e98816e9bc78af0a123679baced3..83597051a4485b5f541052cc80abea7981805b79 100644 (file)
@@ -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;