staging: vt6655: Add spaces around operators
authorMamta Shukla <mamtashukla555@gmail.com>
Sat, 6 Oct 2018 11:30:00 +0000 (17:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Oct 2018 12:59:58 +0000 (14:59 +0200)
Add spaces around '*' and '-' to fix checkpatch issue.

Signed-off-by: Mamta Shukla <mamtashukla555@gmail.com>
Reviewed-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/rxtx.c

index 8ae9c68..1eb8cea 100644 (file)
@@ -213,12 +213,12 @@ s_uGetRTSCTSRsvTime(
        } else if (byRTSRsvType == 3) { /* CTSTxRrvTime_ba, only in 2.4GHZ */
                uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
                uAckTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
-               uRrvTime = uCTSTime + uAckTime + uDataTime + 2*pDevice->uSIFS;
+               uRrvTime = uCTSTime + uAckTime + uDataTime + 2 * pDevice->uSIFS;
                return cpu_to_le16((u16)uRrvTime);
        }
 
        /* RTSRrvTime */
-       uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime + 3*pDevice->uSIFS;
+       uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime + 3 * pDevice->uSIFS;
        return cpu_to_le16((u16)uRrvTime);
 }
 
@@ -241,7 +241,7 @@ s_uGetDataDuration(
        bool bLastFrag = false;
        unsigned int uAckTime = 0, uNextPktTime = 0;
 
-       if (uFragIdx == (uMACfragNum-1))
+       if (uFragIdx == (uMACfragNum - 1))
                bLastFrag = true;
 
        switch (byDurType) {
@@ -254,7 +254,7 @@ s_uGetDataDuration(
                                return 0;
                        }
                } else {/* First Frag or Mid Frag */
-                       if (uFragIdx == (uMACfragNum-2))
+                       if (uFragIdx == (uMACfragNum - 2))
                                uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbLastFragmentSize, wRate, bNeedAck);
                        else
                                uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRate, bNeedAck);
@@ -277,7 +277,7 @@ s_uGetDataDuration(
                                return 0;
                        }
                } else {/* First Frag or Mid Frag */
-                       if (uFragIdx == (uMACfragNum-2))
+                       if (uFragIdx == (uMACfragNum - 2))
                                uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbLastFragmentSize, wRate, bNeedAck);
                        else
                                uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wRate, bNeedAck);
@@ -306,7 +306,7 @@ s_uGetDataDuration(
                                else if (wRate > RATE_54M)
                                        wRate = RATE_54M;
 
-                               if (uFragIdx == (uMACfragNum-2))
+                               if (uFragIdx == (uMACfragNum - 2))
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbLastFragmentSize, wFB_Opt0[FB_RATE0][wRate-RATE_18M], bNeedAck);
                                else
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wFB_Opt0[FB_RATE0][wRate-RATE_18M], bNeedAck);
@@ -317,7 +317,7 @@ s_uGetDataDuration(
                                else if (wRate > RATE_54M)
                                        wRate = RATE_54M;
 
-                               if (uFragIdx == (uMACfragNum-2))
+                               if (uFragIdx == (uMACfragNum - 2))
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbLastFragmentSize, wFB_Opt1[FB_RATE0][wRate-RATE_18M], bNeedAck);
                                else
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wFB_Opt1[FB_RATE0][wRate-RATE_18M], bNeedAck);
@@ -347,7 +347,7 @@ s_uGetDataDuration(
                                else if (wRate > RATE_54M)
                                        wRate = RATE_54M;
 
-                               if (uFragIdx == (uMACfragNum-2))
+                               if (uFragIdx == (uMACfragNum - 2))
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbLastFragmentSize, wFB_Opt0[FB_RATE1][wRate-RATE_18M], bNeedAck);
                                else
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wFB_Opt0[FB_RATE1][wRate-RATE_18M], bNeedAck);
@@ -358,7 +358,7 @@ s_uGetDataDuration(
                                else if (wRate > RATE_54M)
                                        wRate = RATE_54M;
 
-                               if (uFragIdx == (uMACfragNum-2))
+                               if (uFragIdx == (uMACfragNum - 2))
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbLastFragmentSize, wFB_Opt1[FB_RATE1][wRate-RATE_18M], bNeedAck);
                                else
                                        uNextPktTime = s_uGetTxRsvTime(pDevice, byPktType, cbFrameLength, wFB_Opt1[FB_RATE1][wRate-RATE_18M], bNeedAck);