Skip to content

Commit 910b5ee

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8192e: remove comparison to true
Remove a comparison to true reported by checkpatch. CHECK: Using comparison to true is error prone Signed-off-by: Michael Straube <straube.linux@gmail.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/20230619150953.22484-5-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d9902ac commit 910b5ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/staging/rtl8192e/rtl8192e

drivers/staging/rtl8192e/rtl8192e/rtl_wx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static int _rtl92e_wx_set_scan(struct net_device *dev,
391391
rt_state = priv->rtllib->rf_power_state;
392392
if (!priv->up)
393393
return -ENETDOWN;
394-
if (priv->rtllib->link_detect_info.bBusyTraffic == true)
394+
if (priv->rtllib->link_detect_info.bBusyTraffic)
395395
return -EAGAIN;
396396

397397
if (wrqu->data.flags & IW_SCAN_THIS_ESSID) {

0 commit comments

Comments
 (0)