staging: vt6655: remove braces for single statements if
authorGuillaume Clement <gclement@baobob.org>
Thu, 24 Jul 2014 23:06:25 +0000 (01:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:21:28 +0000 (11:21 -0700)
This fixes several "braces {} are not necessary for single statement
blocks" checkpatch warnings.

Signed-off-by: Guillaume Clement <gclement@baobob.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/power.c
drivers/staging/vt6655/vntwifi.c
drivers/staging/vt6655/wmgr.c

index e41d3bc51377ee6760bccc073c2336c5c57f0d19..2a21cbd1c6acc23d49f44e5b8ecf7434c39873eb 100644 (file)
@@ -248,9 +248,8 @@ PSvSendPSPOLL(
        pTxPacket->cbMPDULen = WLAN_HDR_ADDR2_LEN;
        pTxPacket->cbPayloadLen = 0;
        // send the frame
-       if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) {
+       if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING)
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Send PS-Poll packet failed..\n");
-       }
 }
 
 /*+
index 160707d0b7a566de7c74ce92a563396f756be36f..4d425e0c76d4c266f46c674968766e3d7e36fee6 100644 (file)
@@ -684,9 +684,8 @@ VNTWIFIbMeasureReport(
                pMgmt->uLengthOfRepEIDs += (2 + pMgmt->pCurrMeasureEIDRep->len);
                pMgmt->pCurrMeasureEIDRep = (PWLAN_IE_MEASURE_REP) pbyCurrentEID;
        }
-       if (bEndOfReport) {
+       if (bEndOfReport)
                IEEE11hbMSRRepTx(pMgmt);
-       }
 
        return true;
 }
index 57373c9adece48668f747f39c1cab0f0a42fa92b..e88e11606db0d8682566431c01e6bece5e9580de 100644 (file)
@@ -4114,9 +4114,8 @@ s_vMgrRxProbeRequest(
                if (pTxPacket != NULL) {
                        /* send the frame */
                        Status = csMgmt_xmit(pDevice, pTxPacket);
-                       if (Status != CMD_STATUS_PENDING) {
+                       if (Status != CMD_STATUS_PENDING)
                                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Mgt:Probe response tx failed\n");
-                       }
                }
        }
 }