staging: rtl8723bs: ioctl_linux: Fix comparison to false
authorFranziska Naepelt <franziska.naepelt@googlemail.com>
Sat, 22 Jul 2023 21:59:27 +0000 (23:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:04:46 +0000 (10:04 +0200)
Fix the following checkpatch issue:
- CHECK: Using comparison to false is error prone

Signed-off-by: Franziska Naepelt <franziska.naepelt@googlemail.com>
Link: https://lore.kernel.org/r/20230722215927.4443-1-franziska.naepelt@googlemail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

index daa3ad6..c81b30f 100644 (file)
@@ -832,7 +832,7 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param)
                        psta->htpriv.ht_option = false;
                }
 
-               if (pmlmepriv->htpriv.ht_option == false)
+               if (!pmlmepriv->htpriv.ht_option)
                        psta->htpriv.ht_option = false;
 
                update_sta_info_apmode(padapter, psta);