staging: vt6656: removed braces from single line if-statement
authorNandini Hanumanthagowda <nandu.hgowda@gmail.com>
Wed, 23 Oct 2013 18:50:12 +0000 (00:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Oct 2013 13:51:25 +0000 (06:51 -0700)
removed braces from if-control flow structs whenever it
contained only one statement to comply with the coding style

Signed-off-by: Nandini Hanumanthagowda <nandu.hgowda@gmail.com>
Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/datarate.c

index 22071984346ec62684e67c60ee2f8850ecdf10ec..af9eab0c00a317d0513b84f52e5ba98cc995d083 100644 (file)
@@ -274,15 +274,13 @@ void RATEvTxRateFallBack(struct vnt_private *pDevice,
                return;
        }
 
-       if (psNodeDBTable->uTimeCount >= AUTORATE_TIMEOUT) {
+       if (psNodeDBTable->uTimeCount >= AUTORATE_TIMEOUT)
                psNodeDBTable->uTimeCount = 0;
-       }
 
        for (ii = 0; ii < MAX_RATE; ii++) {
                if (psNodeDBTable->wSuppRate & (0x0001<<ii)) {
-                       if (bAutoRate[ii] == true) {
+                       if (bAutoRate[ii] == true)
                                wIdxUpRate = (u16) ii;
-                       }
                } else {
                        bAutoRate[ii] = false;
                }
@@ -292,9 +290,8 @@ void RATEvTxRateFallBack(struct vnt_private *pDevice,
                if ((psNodeDBTable->uTxOk[ii] != 0) ||
                                (psNodeDBTable->uTxFail[ii] != 0)) {
                        dwThroughputTbl[ii] *= psNodeDBTable->uTxOk[ii];
-                       if (ii < RATE_11M) {
+                       if (ii < RATE_11M)
                                psNodeDBTable->uTxFail[ii] *= 4;
-                       }
                        dwThroughputTbl[ii] /= (psNodeDBTable->uTxOk[ii] + psNodeDBTable->uTxFail[ii]);
                }
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Rate %d,Ok: %d, Fail:%d, Throughput:%d\n",