Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ksenija Stanojevic and committed by
Greg Kroah-Hartman
956ff821 eb740375

+1 -1
+1 -1
drivers/staging/rtl8192u/r8192U_wx.c
··· 335 335 if (!priv->up) 336 336 return -ENETDOWN; 337 337 338 - if (priv->ieee80211->LinkDetectInfo.bBusyTraffic == true) 338 + if (priv->ieee80211->LinkDetectInfo.bBusyTraffic) 339 339 return -EAGAIN; 340 340 if (wrqu->data.flags & IW_SCAN_THIS_ESSID) { 341 341 struct iw_scan_req *req = (struct iw_scan_req *)b;