From: Greg KH <gregkh@linuxfoundation.org>
To: "Filippo Muscherà" <filippo.muschera@gmail.com>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
b9788213@gmail.com, straube.linux@gmail.com
Subject: Re: [PATCH] staging: rtl8723bs: fix inconsistent indentation detected by smatch
Date: Sun, 8 Feb 2026 17:11:28 +0100 [thread overview]
Message-ID: <2026020802-transform-ducking-ea25@gregkh> (raw)
In-Reply-To: <20260208154734.12747-1-filippo.muschera@gmail.com>
On Sun, Feb 08, 2026 at 04:47:34PM +0100, Filippo Muscherà wrote:
> Fix the following inconsistent indentation warnings reported by Smatch:
>
> drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2319
> EXhalbtc8723b1ant_ConnectNotify(): inconsistent indenting
> drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c:1410
> phy_IQCalibrate_8723B(): inconsistent indenting
>
> The affected code used a mix of tabs and spaces or excessive
> indentation, making it misleading to read. Align the lines with the
> surrounding code using tabs.
>
> While at it, wrap long lines in HalPhyRf_8723B.c to silence checkpatch
> warnings.
>
> Signed-off-by: Filippo Muscherà <filippo.muschera@gmail.com>
> ---
> drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 2 +-
> drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 6 ++++--
> 2 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
> index b3d7f50fac4c..1af101ba9752 100644
> --- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
> +++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
> @@ -2316,7 +2316,7 @@ void EXhalbtc8723b1ant_ConnectNotify(struct btc_coexist *pBtCoexist, u8 type)
>
> if (type == BTC_ASSOCIATE_START) {
> pCoexSta->bWiFiIsHighPriTask = true;
> - pCoexDm->nArpCnt = 0;
> + pCoexDm->nArpCnt = 0;
> } else {
> pCoexSta->bWiFiIsHighPriTask = false;
> /* pCoexDm->nArpCnt = 0; */
> diff --git a/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c b/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
> index 9df3274c1048..efa5faf9ffdf 100644
> --- a/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
> +++ b/drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
> @@ -1407,8 +1407,10 @@ static void phy_IQCalibrate_8723B(
> PHY_SetBBReg(pDM_Odm->Adapter, rFPGA0_IQK, bMaskH3Bytes, 0x000000);
> pDM_Odm->RFCalibrateInfo.TxLOK[RF_PATH_A] = PHY_QueryRFReg(pDM_Odm->Adapter, RF_PATH_A, 0x8, bRFRegOffsetMask);
>
> - result[t][0] = (PHY_QueryBBReg(pDM_Odm->Adapter, rTx_Power_Before_IQK_A, bMaskDWord)&0x3FF0000)>>16;
> - result[t][1] = (PHY_QueryBBReg(pDM_Odm->Adapter, rTx_Power_After_IQK_A, bMaskDWord)&0x3FF0000)>>16;
> + result[t][0] = (PHY_QueryBBReg(pDM_Odm->Adapter, rTx_Power_Before_IQK_A,
> + bMaskDWord) & 0x3FF0000) >> 16;
> + result[t][1] = (PHY_QueryBBReg(pDM_Odm->Adapter, rTx_Power_After_IQK_A,
> + bMaskDWord) & 0x3FF0000) >> 16;
You just added coding style issues here :(
Always run your patch through checkpatch.pl before sending it.
thanks,
greg k-h
prev parent reply other threads:[~2026-02-08 16:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-08 15:47 [PATCH] staging: rtl8723bs: fix inconsistent indentation detected by smatch Filippo Muscherà
2026-02-08 16:11 ` 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=2026020802-transform-ducking-ea25@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=b9788213@gmail.com \
--cc=filippo.muschera@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=straube.linux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.