The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Alon Shamay <pastraman1@gmail.com>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] staging: rtl8723bs: rename bLinkInfoDump to snake_case
Date: Wed, 8 Jul 2026 16:27:46 +0200	[thread overview]
Message-ID: <2026070801-marital-ladies-d07b@gregkh> (raw)
In-Reply-To: <20260708141024.5814-1-pastraman1@gmail.com>

On Wed, Jul 08, 2026 at 05:10:24PM +0300, Alon Shamay wrote:
> Rename bLinkInfoDump to link_info_dump to follow the kernel coding
> style, which discourages CamelCase and Hungarian notation. Issue
> reported by checkpatch.pl.
> 
> Signed-off-by: Alon Shamay <pastraman1@gmail.com>
> ---
> v3: use real name in From/Signed-off-by
> v2: drop unintended whitespace/reformatting introduced by editor; rename only
> 
>  drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +-
>  drivers/staging/rtl8723bs/include/drv_types.h | 2 +-
>  drivers/staging/rtl8723bs/os_dep/os_intfs.c   | 4 ++--
>  3 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> index a86d6f97cf02..607771a0af21 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
> @@ -4780,7 +4780,7 @@ void _linked_info_dump(struct adapter *padapter)
>  	int UndecoratedSmoothedPWDB;
>  	struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
>  
> -	if (padapter->bLinkInfoDump) {
> +	if (padapter->link_info_dump) {
>  		if ((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE)
>  			rtw_hal_get_def_var(padapter,
>  					    HAL_DEF_UNDERCORATEDSMOOTHEDPWDB,
> diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h
> index 552d0c5fa47f..7b61be9dfea0 100644
> --- a/drivers/staging/rtl8723bs/include/drv_types.h
> +++ b/drivers/staging/rtl8723bs/include/drv_types.h
> @@ -344,7 +344,7 @@ struct adapter {
>  
>  	u8 bFWReady;
>  	u8 bBTFWReady;
> -	u8 bLinkInfoDump;
> +	u8 link_info_dump;

as you are only ever setting this to 0, why is it needed at all?  It
will never change value so the logic can be removed, right?  If not, ok,
but then it should be a 'bool', right?

thanks,

greg k-h

      reply	other threads:[~2026-07-08 14:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <his-message-id>
2026-07-05  8:34 ` [PATCH v2] staging: rtl8723bs: rename bLinkInfoDump to snake_case pastraman
2026-07-05  9:20   ` Greg KH
2026-07-08 14:10     ` [PATCH v3] " Alon Shamay
2026-07-08 14:27       ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026070801-marital-ladies-d07b@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=pastraman1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox