From: Dan Carpenter <error27@gmail.com>
To: Alonso Garrigues <agarrigues@riseup.net>
Cc: gregkh@linuxfoundation.org, guojy.bj@gmail.com,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: clean up style issues in rtl8723b_cmd.c
Date: Thu, 25 Jun 2026 11:02:05 +0300 [thread overview]
Message-ID: <ajzgfS0SAFkV7MDR@stanley.mountain> (raw)
In-Reply-To: <20260624193110.1426826-1-agarrigues@riseup.net>
On Wed, Jun 24, 2026 at 08:31:10PM +0100, Alonso Garrigues wrote:
> Split long do-while conditions across multiple lines and add spaces
> around binary operators. Fix indentation of misaligned comments.
>
Fix one type of warning per patch and send it as a patchset.
> Signed-off-by: Alonso Garrigues <agarrigues@riseup.net>
> ---
> drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 39 +++++++++++++-------
> 1 file changed, 26 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
> index c35c7f1c38ef..d31d8e445dcc 100644
> --- a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
> +++ b/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c
> @@ -74,7 +74,7 @@ s32 FillH2CCmd8723B(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8 *pCmd
> else {
> memcpy((u8 *)(&h2c_cmd)+1, pCmdBuffer, 3);
> memcpy((u8 *)(&h2c_cmd_ex), pCmdBuffer+3, CmdLen-3);
> -/* *(u8 *)(&h2c_cmd) |= BIT(7); */
> + /* *(u8 *)(&h2c_cmd) |= BIT(7); */
Just delete this dead code.
> }
>
> *(u8 *)(&h2c_cmd) |= ElementID;
> @@ -416,13 +416,14 @@ void rtl8723b_set_FwPwrMode_cmd(struct adapter *padapter, u8 psmode)
>
> }
>
> -/* offload to FW if fw version > v15.10
> - pmlmeext->DrvBcnEarly = 0;
> - pmlmeext->DrvBcnTimeOut =7;
> + /* offload to FW if fw version > v15.10 */
> + /* pmlmeext->DrvBcnEarly = 0; */
> + /* pmlmeext->DrvBcnTimeOut =7; */
Dead code. Delete. Some other places as well.
regards,
dan carpenter
prev parent reply other threads:[~2026-06-25 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-24 19:31 [PATCH] staging: rtl8723bs: clean up style issues in rtl8723b_cmd.c Alonso Garrigues
2026-06-25 8:02 ` Dan Carpenter [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=ajzgfS0SAFkV7MDR@stanley.mountain \
--to=error27@gmail.com \
--cc=agarrigues@riseup.net \
--cc=gregkh@linuxfoundation.org \
--cc=guojy.bj@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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