staging: rtl8723bs: Fix missing spaces around operators
PATCH v2 1/1 staging: rtl8723bs: Fix missing spaces around operators
Add missing spaces around arithmetic and bitwise operators ('+', '-', '&') in the rtl8723bs staging driver across multiple files. These were flagged by checkpatch.pl with:
CHECK: spaces preferred around that 'X' (ctx:VxV)
Signed-off-by Moksh Panicker <[email protected]>
--- drivers/staging/rtl8723bs/hal/HalPhyRf.c | 8 ++++---- drivers/staging/rtl8723bs/hal/HalPwrSeqCmd.c | 6 +++--- drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 2 +- drivers/staging/rtl8723bs/hal/hal_sdio.c | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-)
drivers/staging/rtl8723bs/hal/HalPhyRf.c +4 -4
@@ -220,13 +220,13 @@ void ODM_TXPowerTrackingCallback_ThermalMeter(struct adapter *Adapter) pDM_Odm->RFCalibrateInfo.OFDM_index[p];/* 4 7.1 Handle boundary conditions of index. */ -if (pDM_Odm->RFCalibrateInfo.OFDM_index[p] > c.SwingTableSize_OFDM-1 ) - pDM_Odm->RFCalibrateInfo.OFDM_index[p] = c.SwingTableSize_OFDM-1 ; +if (pDM_Odm->RFCalibrateInfo.OFDM_index[p] > c.SwingTableSize_OFDM -1 ) + pDM_Odm->RFCalibrateInfo.OFDM_index[p] = c.SwingTableSize_OFDM -1 ;else if (pDM_Odm->RFCalibrateInfo.OFDM_index[p] < OFDM_min_index) pDM_Odm->RFCalibrateInfo.OFDM_index[p] = OFDM_min_index; } -if (pDM_Odm->RFCalibrateInfo.CCK_index > c.SwingTableSize_CCK-1 ) - pDM_Odm->RFCalibrateInfo.CCK_index = c.SwingTableSize_CCK-1 ; +if (pDM_Odm->RFCalibrateInfo.CCK_index > c.SwingTableSize_CCK -1 ) + pDM_Odm->RFCalibrateInfo.CCK_index = c.SwingTableSize_CCK -1 ;/* else if (pDM_Odm->RFCalibrateInfo.CCK_index < 0) */ /* pDM_Odm->RFCalibrateInfo.CCK_index = 0; */ }else {
drivers/staging/rtl8723bs/hal/HalPwrSeqCmd.c +3 -3
@@ -88,7 +88,7 @@ u8 HalPwrSeqCmdParsing( value &= (~(GET_PWR_CFG_MASK (PwrCfgCmd))); value |= (GET_PWR_CFG_VALUE (PwrCfgCmd) - &GET_PWR_CFG_MASK (PwrCfgCmd) + &GET_PWR_CFG_MASK (PwrCfgCmd) );/* Write the value back to system register */
@@ -106,7 +106,7 @@ u8 HalPwrSeqCmdParsing(else value =rtw_read8 (padapter, offset); - value = value&GET_PWR_CFG_MASK (PwrCfgCmd); + value = value &GET_PWR_CFG_MASK (PwrCfgCmd);if ( value == (GET_PWR_CFG_VALUE (PwrCfgCmd) & GET_PWR_CFG_MASK(PwrCfgCmd))
@@ -126,7 +126,7 @@ u8 HalPwrSeqCmdParsing(if (GET_PWR_CFG_VALUE (PwrCfgCmd) ==PWRSEQ_DELAY_US )udelay (GET_PWR_CFG_OFFSET (PwrCfgCmd));else -udelay (GET_PWR_CFG_OFFSET (PwrCfgCmd)*1000 ); +udelay (GET_PWR_CFG_OFFSET (PwrCfgCmd) *1000 );break ;case PWR_CMD_END :
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c +1 -1
@@ -459,7 +459,7 @@ u8 PHY_GetTxPowerIndexBase( {struct hal_com_data *pHalData =GET_HAL_DATA (padapter);u8 txPower =0 ; -u8 chnlIdx = (Channel-1 ); +u8 chnlIdx = (Channel -1 );if (HAL_IsLegalChannel (padapter, Channel) == false) chnlIdx =0 ;
drivers/staging/rtl8723bs/hal/hal_sdio.c +1 -1
@@ -24,7 +24,7 @@ u8 rtw_hal_sdio_query_tx_freepage( {struct hal_com_data *pHalData =GET_HAL_DATA (padapter); -if ((pHalData->SdioTxFIFOFreePage[PageIdx]+pHalData->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX ]) >= (RequiredPageNum)) +if ((pHalData->SdioTxFIFOFreePage[PageIdx] + pHalData->SdioTxFIFOFreePage[PUBLIC_QUEUE_IDX ]) >= (RequiredPageNum))return true;else return false;
Signature · 1 line
2.34.1
Quoted 8 lines · Moksh Panicker
Add missing spaces around arithmetic and bitwise operators ('+', '-', '&') in the rtl8723bs staging driver across multiple files. These were flagged by checkpatch.pl with:
CHECK: spaces preferred around that 'X' (ctx:VxV)
Signed-off-by Moksh Panicker <[email protected]>---
Thanks!
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter