vt6655: remove unnecessary braces in wroute.c
authorMartin Hofmann <martin.hofmann@studium.uni-erlangen.de>
Tue, 7 Jan 2014 12:11:47 +0000 (13:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 19:04:46 +0000 (11:04 -0800)
This patch removes some unnecessary braces concerning if-statements in the file
wroute.c

Signed-off-by: Martin Hofmann <martin.hofmann@studium.uni-erlangen.de>
Signed-off-by: Michael Gunselmann <michael.gunselmann@studium.uni-erlangen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/wroute.c

index 2e94efb7de2d5e0d83687caa298b987b00df9dce..fdc13df1d51ce8cd17aaa9471b3194186e5f7e65 100644 (file)
@@ -90,9 +90,8 @@ bool ROUTEbRelay(PSDevice pDevice, unsigned char *pbySkbData, unsigned int uData
 
        cbFrameBodySize = uDataLen - ETH_HLEN;
 
-       if (ntohs(pDevice->sTxEthHeader.wType) > ETH_DATA_LEN) {
+       if (ntohs(pDevice->sTxEthHeader.wType) > ETH_DATA_LEN)
                cbFrameBodySize += 8;
-       }
 
        if (pDevice->bEncryptionEnable == true) {
                bNeedEncryption = true;
@@ -124,18 +123,17 @@ bool ROUTEbRelay(PSDevice pDevice, unsigned char *pbySkbData, unsigned int uData
 
        uMACfragNum = cbGetFragCount(pDevice, pTransmitKey, cbFrameBodySize, &pDevice->sTxEthHeader);
 
-       if (uMACfragNum > AVAIL_TD(pDevice, TYPE_AC0DMA)) {
+       if (uMACfragNum > AVAIL_TD(pDevice, TYPE_AC0DMA))
                return false;
-       }
+
        byPktType = pDevice->byPacketType;
 
        if (pDevice->bFixRate) {
                if (pDevice->eCurrentPHYType == PHY_TYPE_11B) {
-                       if (pDevice->uConnectionRate >= RATE_11M) {
+                       if (pDevice->uConnectionRate >= RATE_11M)
                                pDevice->wCurrentRate = RATE_11M;
-                       } else {
+                       else
                                pDevice->wCurrentRate = pDevice->uConnectionRate;
-                       }
                } else {
                        if ((pDevice->eCurrentPHYType == PHY_TYPE_11A) &&
                            (pDevice->uConnectionRate <= RATE_6M)) {