Skip to content

Commit

Permalink
Staging: rtl8192u: Simplify if condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ksenija Stanojevic authored and Greg Kroah-Hartman committed Mar 16, 2015
1 parent eb74037 commit 956ff82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192u/r8192U_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 956ff82

Please sign in to comment.