Re: [PATCH] staging: rtl8723bs: remove unnecessary comparison to true
From: gregkh
Date: Tue May 05 2026 - 06:07:35 EST
On Tue, May 05, 2026 at 03:09:17PM +0530, Ashwin Gundarapu wrote:
>
> >From 833733dda327c72d63bcfb18701fadabae03e4d2 Mon Sep 17 00:00:00 2001
> From: Ashwin Gundarapu <linuxuser509@xxxxxxxxxxx>
> Date: Sat, 2 May 2026 17:19:48 +0530
> Subject: [PATCH] staging: rtl8723bs: remove unnecessary comparison to true
This should not be here.
>
> Remove explicit comparison to true in check_fwstate() call and
> add spacing around the bitwise OR operator to improve code style.
>
> Signed-off-by: Ashwin Gundarapu <linuxuser509@xxxxxxxxxxx>
> ---
> drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> index c70541f95a73..c100a0d70fe2 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> @@ -151,7 +151,8 @@ u8 rtw_set_802_11_ssid(struct adapter *padapter, struct ndis_802_11_ssid *ssid)
> else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true)
> goto release_mlme_lock;
>
> - if (check_fwstate(pmlmepriv, _FW_LINKED|WIFI_ADHOC_MASTER_STATE) == true) {
> + if (check_fwstate(pmlmepriv,
> + _FW_LINKED | WIFI_ADHOC_MASTER_STATE)) {
You also wrapped the line, why? checkpatch should have complained about
this too.
thanks,
greg k-h