]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: fix inconsistent indenting detected by smatch
authorFilippo Muscherà <filippo.muschera@gmail.com>
Sun, 8 Feb 2026 17:02:47 +0000 (18:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 15:22:38 +0000 (16:22 +0100)
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>
Reviewed-by: Bera Yüzlü <b9788213@gmail.com>
Link: https://patch.msgid.link/20260208170247.7013-1-filippo.muschera@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c

index b3d7f50fac4c6429734fbd742ef210c5b08acc5c..1af101ba97525d108b08fd83b31449443a954933 100644 (file)
@@ -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; */
index adf408647e588987afe2ed58f525589080cfc8e5..8f6849f2277e175891d6f36a26933edc01453657 100644 (file)
@@ -1395,8 +1395,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;
                        break;
                }
        }