Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: rename camelcase variable bAllow
@ 2026-05-24 14:23 Anirban Bose
  2026-07-07 10:16 ` Greg KH
  2026-07-08  6:19 ` [PATCH v2] " Anirban Bose
  0 siblings, 2 replies; 3+ messages in thread
From: Anirban Bose @ 2026-05-24 14:23 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Anirban Bose

Rename the local variable 'bAllow' to 'allow' in rtw_cmd_filter() to fix
 a checkpatch CamelCase warning.

Signed-off-by: Anirban Bose <boses156@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_cmd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index b932670f5d63..aa4a810d8322 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -299,12 +299,12 @@ void rtw_free_cmd_priv(struct	cmd_priv *pcmdpriv)
 int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj);
 int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
 {
-	u8 bAllow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */
+	u8 allow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */
 
 	if (cmd_obj->cmdcode == GEN_CMD_CODE(_SetChannelPlan))
-		bAllow = true;
+		allow = true;
 
-	if ((!pcmdpriv->padapter->hw_init_completed && !bAllow) ||
+	if ((!pcmdpriv->padapter->hw_init_completed && !allow) ||
 	    !atomic_read(&pcmdpriv->cmdthd_running))	/* com_thread not running */
 		return _FAIL;
 
-- 
2.54.0


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

* Re: [PATCH] staging: rtl8723bs: rename camelcase variable bAllow
  2026-05-24 14:23 [PATCH] staging: rtl8723bs: rename camelcase variable bAllow Anirban Bose
@ 2026-07-07 10:16 ` Greg KH
  2026-07-08  6:19 ` [PATCH v2] " Anirban Bose
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2026-07-07 10:16 UTC (permalink / raw)
  To: Anirban Bose; +Cc: linux-staging, linux-kernel

On Sun, May 24, 2026 at 07:53:09PM +0530, Anirban Bose wrote:
> Rename the local variable 'bAllow' to 'allow' in rtw_cmd_filter() to fix
>  a checkpatch CamelCase warning.
> 
> Signed-off-by: Anirban Bose <boses156@gmail.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_cmd.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
> index b932670f5d63..aa4a810d8322 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
> @@ -299,12 +299,12 @@ void rtw_free_cmd_priv(struct	cmd_priv *pcmdpriv)
>  int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj);
>  int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
>  {
> -	u8 bAllow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */
> +	u8 allow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */

Why isn't this converted to a boolean at the same time?

thanks,

greg k-h

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

* [PATCH v2] staging: rtl8723bs: rename camelcase variable bAllow
  2026-05-24 14:23 [PATCH] staging: rtl8723bs: rename camelcase variable bAllow Anirban Bose
  2026-07-07 10:16 ` Greg KH
@ 2026-07-08  6:19 ` Anirban Bose
  1 sibling, 0 replies; 3+ messages in thread
From: Anirban Bose @ 2026-07-08  6:19 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, linux-kernel, Anirban Bose

Rename the local variable 'bAllow' to 'allow' in
rtw_cmd_filter() to fix a checkpatch CamelCase warning.

Signed-off-by: Anirban Bose <boses156@gmail.com>
---
v2:
  - Changed the variable type to bool (as requested)
---
 drivers/staging/rtl8723bs/core/rtw_cmd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index aa9ad4d05e36..623ce064d395 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -296,12 +296,12 @@ void rtw_free_cmd_priv(struct	cmd_priv *pcmdpriv)
 int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj);
 int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
 {
-	u8 bAllow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */
+	bool allow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */
 
 	if (cmd_obj->cmdcode == SET_CHANNEL_PLAN_CMD)
-		bAllow = true;
+		allow = true;
 
-	if ((!pcmdpriv->padapter->hw_init_completed && !bAllow) ||
+	if ((!pcmdpriv->padapter->hw_init_completed && !allow) ||
 	    !atomic_read(&pcmdpriv->cmdthd_running))	/* com_thread not running */
 		return _FAIL;
 
-- 
2.53.0


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

end of thread, other threads:[~2026-07-08  6:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-24 14:23 [PATCH] staging: rtl8723bs: rename camelcase variable bAllow Anirban Bose
2026-07-07 10:16 ` Greg KH
2026-07-08  6:19 ` [PATCH v2] " Anirban Bose

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