mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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 <mitaliborkar810@gmail.com> Link: https://lore.kernel.org/r/28cbc4825fdfacf5d5ea8bb688a8bd6a1c65f059.1618380932.git.mitaliborkar810@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f013209cbf
commit
3cc112a088
2 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
@ -188,9 +188,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];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -517,7 +517,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");
|
||||
|
|
Loading…
Reference in a new issue