From: Michael Straube Date: Mon, 19 Jun 2023 15:09:53 +0000 (+0200) Subject: staging: rtl8192e: remove comparison to true X-Git-Tag: v6.6.17~4467^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=910b5ee9b33a1acf91a6e4bbcc7861a19fb9603c;p=platform%2Fkernel%2Flinux-rpi.git 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 Tested-by: Philipp Hortmann Link: https://lore.kernel.org/r/20230619150953.22484-5-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c index b680757..88975dc 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c @@ -391,7 +391,7 @@ static int _rtl92e_wx_set_scan(struct net_device *dev, rt_state = priv->rtllib->rf_power_state; if (!priv->up) return -ENETDOWN; - if (priv->rtllib->link_detect_info.bBusyTraffic == true) + if (priv->rtllib->link_detect_info.bBusyTraffic) return -EAGAIN; if (wrqu->data.flags & IW_SCAN_THIS_ESSID) {