Staging: bcm: Qos.c: Line length / Whitespace cleanup in MatchProtocol()
authorMatthias Beyer <mail@beyermatthias.de>
Tue, 29 Jul 2014 14:52:23 +0000 (16:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 00:14:23 +0000 (17:14 -0700)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Qos.c

index b24ee8ad2b038fad04415e0a6668e29ed0414160..891f6906715ca3e343742af5766302c563d20f75 100644 (file)
@@ -158,19 +158,32 @@ static bool MatchTos(struct bcm_classifier_rule *pstClassifierRule,
 *
 * Returns     - TRUE(If address matches) else FAIL.
 ****************************************************************************/
-bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule, UCHAR ucProtocol)
+bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,
+                  UCHAR ucProtocol)
 {
        UCHAR ucLoopIndex = 0;
        struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
 
        if (0 == pstClassifierRule->ucProtocolLength)
                return TRUE;
-       for (ucLoopIndex = 0; ucLoopIndex < pstClassifierRule->ucProtocolLength; ucLoopIndex++) {
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol:0x%X Classification Protocol:0x%X", ucProtocol, pstClassifierRule->ucProtocol[ucLoopIndex]);
+       for (ucLoopIndex = 0;
+            ucLoopIndex < pstClassifierRule->ucProtocolLength;
+            ucLoopIndex++) {
+               BCM_DEBUG_PRINT(Adapter,
+                               DBG_TYPE_TX,
+                               IPV4_DBG,
+                               DBG_LVL_ALL,
+                               "Protocol:0x%X Classification Protocol:0x%X",
+                               ucProtocol,
+                               pstClassifierRule->ucProtocol[ucLoopIndex]);
                if (pstClassifierRule->ucProtocol[ucLoopIndex] == ucProtocol)
                        return TRUE;
        }
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol Not Matched");
+       BCM_DEBUG_PRINT(Adapter,
+                       DBG_TYPE_TX,
+                       IPV4_DBG,
+                       DBG_LVL_ALL,
+                       "Protocol Not Matched");
        return false;
 }