staging: rtl8723bs: fix inconsistent indenting detected by smatch
PATCH v2 1/1 staging: rtl8723bs: fix inconsistent indenting detected by smatch
Fix the following inconsistent indentation warnings reported by Smatch:
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2319
EXhalbtc8723b1ant_ConnectNotify(): inconsistent indentingdrivers/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.
---
v2:
- Fix coding style issues introduced in v1 when wrapping lines.
--- drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 2 +- drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-)
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c +1 -1
@@ -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; */
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c +4 -2
@@ -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 ;break ; } }
Signature · 1 line
2.52.0
Quoted 11 lines · Filippo Muscherà
Fix the following inconsistent indentation warnings reported by Smatch:
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2319
EXhalbtc8723b1ant_ConnectNotify(): inconsistent indentingdrivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c:1410
phy_IQCalibrate_8723B(): inconsistent indentingThe 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.
Quoted 5 lines
While at it, wrap long lines in
HalPhyRf_8723B.cto silence checkpatch warnings.Signed-off-by Filippo Muscherà <[email protected]>---
LGTM.