staging: rtl8192e: add spaces around binary operators
authorMitali Borkar <mitaliborkar810@gmail.com>
Wed, 14 Apr 2021 06:55:03 +0000 (12:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 08:30:54 +0000 (10:30 +0200)
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>
drivers/staging/rtl8192e/rtl819x_HTProc.c
drivers/staging/rtl8192e/rtl819x_TSProc.c

index 4a29685..b74c6ac 100644 (file)
@@ -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;
index 6c51323..b14ed35 100644 (file)
@@ -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");