* [PATCH] staging: rtl8723bs: remove redundant comparison with true
@ 2026-05-17 4:35 Diego Fernando Mancera Gómez
2026-05-21 10:41 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Diego Fernando Mancera Gómez @ 2026-05-17 4:35 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, Diego Fernando Mancera Gómez
Clean up the checkpatch.pl check: "Using comparison to true is
error prone". Evaluating the boolean variable directly is preferred
and more idiomatic in the Linux kernel.
Signed-off-by: Diego Fernando Mancera Gómez <diegomancera.dev@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
index 07a6db1d2..349b27f91 100644
--- a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
+++ b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
@@ -531,7 +531,7 @@ u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_addr)
paclnode = list_entry(plist, struct rtw_wlan_acl_node, list);
if (!memcmp(paclnode->addr, mac_addr, ETH_ALEN))
- if (paclnode->valid == true) {
+ if (paclnode->valid) {
match = true;
break;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8723bs: remove redundant comparison with true
2026-05-17 4:35 [PATCH] staging: rtl8723bs: remove redundant comparison with true Diego Fernando Mancera Gómez
@ 2026-05-21 10:41 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-05-21 10:41 UTC (permalink / raw)
To: Diego Fernando Mancera Gómez; +Cc: linux-staging
On Sat, May 16, 2026 at 10:35:20PM -0600, Diego Fernando Mancera Gómez wrote:
> Clean up the checkpatch.pl check: "Using comparison to true is
> error prone". Evaluating the boolean variable directly is preferred
> and more idiomatic in the Linux kernel.
>
> Signed-off-by: Diego Fernando Mancera Gómez <diegomancera.dev@gmail.com>
> ---
> drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
> index 07a6db1d2..349b27f91 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
> @@ -531,7 +531,7 @@ u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_addr)
> paclnode = list_entry(plist, struct rtw_wlan_acl_node, list);
>
> if (!memcmp(paclnode->addr, mac_addr, ETH_ALEN))
> - if (paclnode->valid == true) {
> + if (paclnode->valid) {
> match = true;
> break;
> }
> --
> 2.43.0
>
>
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him
a patch that has triggered this response. He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created. Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.
You are receiving this message because of the following common error(s)
as indicated below:
- Your patch did not apply to any known trees that Greg is in control
of. Possibly this is because you made it against Linus's tree, not
the linux-next tree, which is where all of the development for the
next version of the kernel is at. Please refresh your patch against
the linux-next tree, or even better yet, the development tree
specified in the MAINTAINERS file for the subsystem you are submitting
a patch for, and resend it.
If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.
thanks,
greg k-h's patch email bot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-21 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-17 4:35 [PATCH] staging: rtl8723bs: remove redundant comparison with true Diego Fernando Mancera Gómez
2026-05-21 10:41 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox