From: Franziska Naepelt Date: Sat, 22 Jul 2023 21:59:27 +0000 (+0200) Subject: staging: rtl8723bs: ioctl_linux: Fix comparison to false X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e1bfd97461541c5f974a690ac1f11e675f80fb3a;p=linux.git staging: rtl8723bs: ioctl_linux: Fix comparison to false Fix the following checkpatch issue: - CHECK: Using comparison to false is error prone Signed-off-by: Franziska Naepelt Link: https://lore.kernel.org/r/20230722215927.4443-1-franziska.naepelt@googlemail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index daa3ad6f2e28c..c81b30f1f1b05 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -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);