Staging: bcm: IPv6Protocol.c: coding style fix
authorMax Tottenham <mtottenh@gmail.com>
Tue, 3 Apr 2012 11:35:31 +0000 (12:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 17:34:04 +0000 (10:34 -0700)
Eighth patch in a series to fix coding style in IPv6Protocol.c
This patch removes some uneeded braces around single line if/for statements

Signed-off-by: Max Tottenham <mtottenh@gmail.com>
Acked-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/IPv6Protocol.c

index d9c9cef2d1721a7147fe6109288467f66ab9a572..1da21642c18ee7cb9da3c00c73c6b546eef977b0 100644 (file)
@@ -149,9 +149,8 @@ static UCHAR GetIpv6ProtocolPorts(UCHAR *pucPayload, USHORT *pusSrcPort,
        UCHAR *pucNextHeader = NULL;
        PMINI_ADAPTER Adapter = GET_BCM_ADAPTER(gblpnetdev);
 
-       if (!pucPayload || (usPayloadLength == 0)) {
+       if (!pucPayload || (usPayloadLength == 0))
                return 0;
-       }
 
        *pusSrcPort = *pusDestPort = 0;
        ucHeaderType = ucNextHeader;
@@ -280,9 +279,8 @@ USHORT      IpVersion6(PMINI_ADAPTER Adapter, PVOID pcIpHeader,
                if (iMatchedSFQueueIndex >= NO_OF_QUEUES) {
                        bClassificationSucceed = FALSE;
                } else {
-                       if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == FALSE) {
+                       if (Adapter->PackInfo[iMatchedSFQueueIndex].bActive == FALSE)
                                bClassificationSucceed = FALSE;
-                       }
                }
        }
 
@@ -310,9 +308,8 @@ static BOOLEAN MatchSrcIpv6Address(S_CLASSIFIER_RULE *pstClassifierRule,
 
 
        /* First Convert the Ip Address in the packet to Host Endian order */
-       for (uiIpv6AddIndex = 0; uiIpv6AddIndex < uiIpv6AddrNoLongWords; uiIpv6AddIndex++) {
+       for (uiIpv6AddIndex = 0; uiIpv6AddIndex < uiIpv6AddrNoLongWords; uiIpv6AddIndex++)
                aulSrcIP[uiIpv6AddIndex] = ntohl(pstIpv6Header->ulSrcIpAddress[uiIpv6AddIndex]);
-       }
 
        for (uiLoopIndex = 0; uiLoopIndex < uiCountIPSrcAddresses; uiLoopIndex += uiIpv6AddrNoLongWords) {
                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, DBG_LVL_ALL,
@@ -368,9 +365,8 @@ static BOOLEAN MatchDestIpv6Address(S_CLASSIFIER_RULE *pstClassifierRule,
 
 
        /* First Convert the Ip Address in the packet to Host Endian order */
-       for (uiIpv6AddIndex = 0; uiIpv6AddIndex < uiIpv6AddrNoLongWords; uiIpv6AddIndex++) {
+       for (uiIpv6AddIndex = 0; uiIpv6AddIndex < uiIpv6AddrNoLongWords; uiIpv6AddIndex++)
                aulDestIP[uiIpv6AddIndex] = ntohl(pstIpv6Header->ulDestIpAddress[uiIpv6AddIndex]);
-       }
 
        for (uiLoopIndex = 0; uiLoopIndex < uiCountIPDestinationAddresses; uiLoopIndex += uiIpv6AddrNoLongWords) {
                BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV6_DBG, DBG_LVL_ALL,