]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6656: rxtx.c clean up s_uGetRTSCTSDuration
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 15 Oct 2013 20:05:02 +0000 (21:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 19:40:37 +0000 (12:40 -0700)
White space clean up.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c

index 9cf5b0890fc12bcbe2528610b87d07d526fa5e3e..0c1c46f3a0ed42090f3f3fc464d961a15b11bc48 100644 (file)
@@ -427,35 +427,38 @@ static u16 s_uGetRTSCTSDuration(struct vnt_private *pDevice, u8 byDurType,
 {
        u32 uCTSTime = 0, uDurTime = 0;
 
-    switch (byDurType) {
+       switch (byDurType) {
+       case RTSDUR_BB:
+       case RTSDUR_BA:
+       case RTSDUR_BA_F0:
+       case RTSDUR_BA_F1:
+               uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType,
+                       14, pDevice->byTopCCKBasicRate);
+               uDurTime = uCTSTime + 2 * pDevice->uSIFS +
+                       s_uGetTxRsvTime(pDevice, byPktType,
+                                               cbFrameLength, wRate, bNeedAck);
+               break;
 
-    case RTSDUR_BB:    //RTSDuration_bb
-    case RTSDUR_BA:    //RTSDuration_ba
-    case RTSDUR_BA_F0: //RTSDuration_ba_f0
-    case RTSDUR_BA_F1: //RTSDuration_ba_f1
-        uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
-       uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice,
-               byPktType, cbFrameLength, wRate, bNeedAck);
-        break;
-
-    case RTSDUR_AA:
-    case RTSDUR_AA_F0:
-    case RTSDUR_AA_F1: //RTSDuration_aa_f1
-        uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType, 14, pDevice->byTopOFDMBasicRate);
-       uDurTime = uCTSTime + 2 * pDevice->uSIFS + s_uGetTxRsvTime(pDevice,
-                               byPktType, cbFrameLength, wRate, bNeedAck);
-       break;
+       case RTSDUR_AA:
+       case RTSDUR_AA_F0:
+       case RTSDUR_AA_F1:
+               uCTSTime = BBuGetFrameTime(pDevice->byPreambleType, byPktType,
+                       14, pDevice->byTopOFDMBasicRate);
+               uDurTime = uCTSTime + 2 * pDevice->uSIFS +
+                       s_uGetTxRsvTime(pDevice, byPktType,
+                                               cbFrameLength, wRate, bNeedAck);
+               break;
 
-    case CTSDUR_BA:
-    case CTSDUR_BA_F0: //CTSDuration_ba_f0
-    case CTSDUR_BA_F1: //CTSDuration_ba_f1
-       uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice,
+       case CTSDUR_BA:
+       case CTSDUR_BA_F0:
+       case CTSDUR_BA_F1:
+               uDurTime = pDevice->uSIFS + s_uGetTxRsvTime(pDevice,
                                byPktType, cbFrameLength, wRate, bNeedAck);
-       break;
+               break;
 
-    default:
-        break;
-    }
+       default:
+               break;
+       }
 
        return cpu_to_le16((u16)uDurTime);
 }