Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mitali Borkar and committed by
Greg Kroah-Hartman
3cc112a0 f013209c

+8 -8
+4 -4
drivers/staging/rtl8192e/rtl819x_HTProc.c
··· 138 138 is40MHz = 1; 139 139 isShortGI = 1; 140 140 } 141 - return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate&0xf]; 141 + return MCS_DATA_RATE[is40MHz][isShortGI][nDataRate & 0xf]; 142 142 } 143 143 144 144 bool IsHTHalfNmodeAPs(struct rtllib_device *ieee) ··· 479 479 if (availableMcsRate[i] != 0) { 480 480 bitMap = availableMcsRate[i]; 481 481 for (j = 0; j < 8; j++) { 482 - if ((bitMap%2) != 0) { 483 - if (HTMcsToDataRate(ieee, (8*i+j)) > 482 + if ((bitMap % 2) != 0) { 483 + if (HTMcsToDataRate(ieee, (8 * i + j)) > 484 484 HTMcsToDataRate(ieee, mcsRate)) 485 485 mcsRate = 8 * i + j; 486 486 } ··· 577 577 578 578 pHTInfo->bCurrentAMPDUEnable = pHTInfo->bAMPDUEnable; 579 579 if (ieee->rtllib_ap_sec_type && 580 - (ieee->rtllib_ap_sec_type(ieee)&(SEC_ALG_WEP|SEC_ALG_TKIP))) { 580 + (ieee->rtllib_ap_sec_type(ieee) & (SEC_ALG_WEP | SEC_ALG_TKIP))) { 581 581 if ((pHTInfo->IOTPeer == HT_IOT_PEER_ATHEROS) || 582 582 (pHTInfo->IOTPeer == HT_IOT_PEER_UNKNOWN)) 583 583 pHTInfo->bCurrentAMPDUEnable = false;
+4 -4
drivers/staging/rtl8192e/rtl819x_TSProc.c
··· 104 104 { 105 105 eth_zero_addr(pTsCommonInfo->Addr); 106 106 memset(&pTsCommonInfo->TSpec, 0, sizeof(union tspec_body)); 107 - memset(&pTsCommonInfo->TClass, 0, sizeof(union qos_tclas)*TCLAS_NUM); 107 + memset(&pTsCommonInfo->TClass, 0, sizeof(union qos_tclas) * TCLAS_NUM); 108 108 pTsCommonInfo->TClasProc = 0; 109 109 pTsCommonInfo->TClasNum = 0; 110 110 } ··· 188 188 for (count = 0; count < REORDER_ENTRY_NUM; count++) { 189 189 list_add_tail(&pRxReorderEntry->List, 190 190 &ieee->RxReorder_Unused_List); 191 - if (count == (REORDER_ENTRY_NUM-1)) 191 + if (count == (REORDER_ENTRY_NUM - 1)) 192 192 break; 193 - pRxReorderEntry = &ieee->RxReorderEntry[count+1]; 193 + pRxReorderEntry = &ieee->RxReorderEntry[count + 1]; 194 194 } 195 195 196 196 } ··· 517 517 msecs_to_jiffies(TS_ADDBA_DELAY)); 518 518 } else { 519 519 netdev_dbg(ieee->dev, "Immediately Start ADDBA\n"); 520 - mod_timer(&pTxTS->TsAddBaTimer, jiffies+10); 520 + mod_timer(&pTxTS->TsAddBaTimer, jiffies + 10); 521 521 } 522 522 } else 523 523 netdev_dbg(ieee->dev, "BA timer is already added\n");