staging: rtl8192e: add spaces around binary operators
PATCH 1/6 staging: rtl8192e: add spaces around binary operators
Added spaces around binary operators like '+', '*', '|', '-', '&', to improve readability and to meet linux kernel coding style.
Signed-off-by Mitali Borkar <[email protected]>
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 ++++---- drivers/staging/rtl8192e/rtl819x_TSProc.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +4 -4
@@ -138,7 +138,7 @@ u16 TxCountToDataRate(struct rtllib_device *ieee, u8 nDataRate) is40MHz =1 ; isShortGI =1 ; } -return MCS_DATA_RATE [is40MHz][isShortGI][nDataRate&0xf ]; +return MCS_DATA_RATE [is40MHz][isShortGI][nDataRate &0xf ]; }bool IsHTHalfNmodeAPs (struct rtllib_device *ieee)
@@ -479,8 +479,8 @@ u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet,if (availableMcsRate[i] !=0 ) { bitMap = availableMcsRate[i];for (j =0 ; j <8 ; j++) { -if ((bitMap%2 ) !=0 ) { -if (HTMcsToDataRate (ieee, (8 *i+j)) > +if ((bitMap %2 ) !=0 ) { +if (HTMcsToDataRate (ieee, (8 * i + j)) >HTMcsToDataRate (ieee, mcsRate)) mcsRate =8 * i + j; }
@@ -577,7 +577,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee) pHTInfo->bCurrentAMPDUEnable = pHTInfo->bAMPDUEnable;if (ieee->rtllib_ap_sec_type && - (ieee->rtllib_ap_sec_type (ieee)&(SEC_ALG_WEP |SEC_ALG_TKIP ))) { + (ieee->rtllib_ap_sec_type (ieee) & (SEC_ALG_WEP |SEC_ALG_TKIP ))) {if ((pHTInfo->IOTPeer ==HT_IOT_PEER_ATHEROS ) || (pHTInfo->IOTPeer ==HT_IOT_PEER_UNKNOWN )) pHTInfo->bCurrentAMPDUEnable = false;
drivers/staging/rtl8192e/rtl819x_TSProc.c +4 -4
@@ -104,7 +104,7 @@ static void ResetTsCommonInfo(struct ts_common_info *pTsCommonInfo) {eth_zero_addr (pTsCommonInfo->Addr);memset (&pTsCommonInfo->TSpec,0 ,sizeof (union tspec_body )); -memset (&pTsCommonInfo->TClass,0 ,sizeof (union qos_tclas )*TCLAS_NUM ); +memset (&pTsCommonInfo->TClass,0 ,sizeof (union qos_tclas ) *TCLAS_NUM ); pTsCommonInfo->TClasProc =0 ; pTsCommonInfo->TClasNum =0 ; }
@@ -189,9 +189,9 @@ void TSInitialize(struct rtllib_device *ieee)for (count =0 ; count <REORDER_ENTRY_NUM ; count++) {list_add_tail (&pRxReorderEntry->List, &ieee->RxReorder_Unused_List); -if (count == (REORDER_ENTRY_NUM -1 )) +if (count == (REORDER_ENTRY_NUM -1 ))break ; - pRxReorderEntry = &ieee->RxReorderEntry[count+1 ]; + pRxReorderEntry = &ieee->RxReorderEntry[count +1 ]; } }
@@ -518,7 +518,7 @@ void TsStartAddBaProcess(struct rtllib_device *ieee, struct tx_ts_record *pTxTS) msecs_to_jiffies(TS_ADDBA_DELAY)); }else {netdev_dbg (ieee->dev,"Immediately Start ADDBA\n" ); -mod_timer (&pTxTS->TsAddBaTimer, jiffies+10 ); +mod_timer (&pTxTS->TsAddBaTimer, jiffies +10 ); } }else netdev_dbg (ieee->dev,"BA timer is already added\n" );
Signature · 1 line
2.30.2