public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: replace comparison to false with logical NOT
@ 2026-03-09 10:48 dipesh chaudhary
  0 siblings, 0 replies; 4+ messages in thread
From: dipesh chaudhary @ 2026-03-09 10:48 UTC (permalink / raw)
  To: gregkh
  Cc: trohan2000, s9430939, dan.carpenter, ethantidmore06,
	davidzalman.101, linux-staging, linux-kernel, dipesh chaudhary


Fix checkpatch warning "Using comparison to false is error prone". Replace "== false" with the logical NOT operator "!" to align with the standard Linux kernel coding style and improve readability.

Signed-off-by: dipesh chaudhary <me@dipeshchaudhary.in>
---
 drivers/staging/rtl8723bs/core/rtw_ap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 864cd8b6d1f1..8f18175175ee 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
@@ -1013,10 +1013,10 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf,  int len)
 
 		rtw_ht_use_default_setting(padapter);
 
-		if (pmlmepriv->htpriv.sgi_20m == false)
+		if (!pmlmepriv->htpriv.sgi_20m)
 			pht_cap->cap_info &= cpu_to_le16(~(IEEE80211_HT_CAP_SGI_20));
 
-		if (pmlmepriv->htpriv.sgi_40m == false)
+		if (!pmlmepriv->htpriv.sgi_40m)
 			pht_cap->cap_info &= cpu_to_le16(~(IEEE80211_HT_CAP_SGI_40));
 
 		if (!TEST_FLAG(pmlmepriv->htpriv.ldpc_cap, LDPC_HT_ENABLE_RX))
-- 
2.47.3




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: rtl8723bs: replace comparison to false with logical NOT
       [not found] <0c3a1503-1af9-4507-b386-741c26c329ac@smtp-relay.sendinblue.com>
@ 2026-03-09 11:05 ` Dan Carpenter
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2026-03-09 11:05 UTC (permalink / raw)
  To: dipesh chaudhary
  Cc: gregkh, trohan2000, s9430939, ethantidmore06, davidzalman.101,
	linux-staging, linux-kernel

On Mon, Mar 09, 2026 at 10:48:23AM +0000, dipesh chaudhary wrote:
> 
> Fix checkpatch warning "Using comparison to false is error prone". Replace "== false" with the logical NOT operator "!" to align with the standard Linux kernel coding style and improve readability.
> 
> Signed-off-by: dipesh chaudhary <me@dipeshchaudhary.in>
> ---

Probably you should capitalize your name.  It's supposed to be formal
like signeing a legal document.

Run your patch through checkpatch.

Someone already did this change.  Work against the staging-next tree.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: rtl8723bs: replace comparison to false with logical NOT
@ 2026-03-09 12:51 Dipesh Chaudhary
  0 siblings, 0 replies; 4+ messages in thread
From: Dipesh Chaudhary @ 2026-03-09 12:51 UTC (permalink / raw)
  To: dan.carpenter
  Cc: gregkh, trohan2000, s9430939, ethantidmore06, davidzalman.101,
	linux-staging, linux-kernel


Hi Dan,

Thank you for the review and the guidance. I have updated my Git configuration to properly capitalize my name for the Signed-off-by tag, and I will make sure to run checkpatch on the generated `.patch` files going forward.

I just added the staging tree as a remote and switched to `staging-next` to ensure I'm working against the latest codebase. I appreciate your patience with a newcomer!

Best regards,
Dipesh Chaudhary



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: rtl8723bs: replace comparison to false with logical NOT
       [not found] <ea785b73-b972-4bac-b666-b6dce56fb393@smtp-relay.sendinblue.com>
@ 2026-03-09 16:52 ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2026-03-09 16:52 UTC (permalink / raw)
  To: dipesh chaudhary
  Cc: trohan2000, s9430939, dan.carpenter, ethantidmore06,
	davidzalman.101, linux-staging, linux-kernel

On Mon, Mar 09, 2026 at 10:48:23AM +0000, dipesh chaudhary wrote:
> 
> Fix checkpatch warning "Using comparison to false is error prone". Replace "== false" with the logical NOT operator "!" to align with the standard Linux kernel coding style and improve readability.

Please wrap your changelog lines properly

> Signed-off-by: dipesh chaudhary <me@dipeshchaudhary.in>

And use Upper Case letters for your name :)

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-09 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <0c3a1503-1af9-4507-b386-741c26c329ac@smtp-relay.sendinblue.com>
2026-03-09 11:05 ` [PATCH] staging: rtl8723bs: replace comparison to false with logical NOT Dan Carpenter
     [not found] <ea785b73-b972-4bac-b666-b6dce56fb393@smtp-relay.sendinblue.com>
2026-03-09 16:52 ` Greg KH
2026-03-09 12:51 Dipesh Chaudhary
  -- strict thread matches above, loose matches on Subject: below --
2026-03-09 10:48 dipesh chaudhary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox