Staging: bcm: Qos.c: Line length / Whitespace cleanup in EThCSGetPktInfo()
authorMatthias Beyer <mail@beyermatthias.de>
Tue, 29 Jul 2014 14:52:35 +0000 (16:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 00:14:24 +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 b277ae6ae177996b94cc1b9f80d4a0c62e71abec..f8eb3fe1acbe35ac8a59c06caa5013414c76ea6f 100644 (file)
@@ -1127,14 +1127,25 @@ static bool EThCSClassifyPkt(struct bcm_mini_adapter *Adapter,
        return bClassificationSucceed;
 }
 
-static void EThCSGetPktInfo(struct bcm_mini_adapter *Adapter, PVOID pvEthPayload,
+static void EThCSGetPktInfo(struct bcm_mini_adapter *Adapter,
+                           PVOID pvEthPayload,
                            struct bcm_eth_packet_info *pstEthCsPktInfo)
 {
-       USHORT u16Etype = ntohs(((struct bcm_eth_header *)pvEthPayload)->u16Etype);
+       USHORT u16Etype = ntohs(
+                       ((struct bcm_eth_header *)pvEthPayload)->u16Etype);
 
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL,  "EthCSGetPktInfo : Eth Hdr Type : %X\n", u16Etype);
+       BCM_DEBUG_PRINT(Adapter,
+                       DBG_TYPE_TX,
+                       IPV4_DBG,
+                       DBG_LVL_ALL,
+                       "EthCSGetPktInfo : Eth Hdr Type : %X\n",
+                       u16Etype);
        if (u16Etype > 0x5dc) {
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "EthCSGetPktInfo : ETH2 Frame\n");
+               BCM_DEBUG_PRINT(Adapter,
+                               DBG_TYPE_TX,
+                               IPV4_DBG,
+                               DBG_LVL_ALL,
+                               "EthCSGetPktInfo : ETH2 Frame\n");
                /* ETH2 Frame */
                if (u16Etype == ETHERNET_FRAMETYPE_802QVLAN) {
                        /* 802.1Q VLAN Header */
@@ -1147,9 +1158,14 @@ static void EThCSGetPktInfo(struct bcm_mini_adapter *Adapter, PVOID pvEthPayload
                }
        } else {
                /* 802.2 LLC */
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "802.2 LLC Frame\n");
+               BCM_DEBUG_PRINT(Adapter,
+                               DBG_TYPE_TX,
+                               IPV4_DBG,
+                               DBG_LVL_ALL,
+                               "802.2 LLC Frame\n");
                pstEthCsPktInfo->eNwpktEthFrameType = eEth802LLCFrame;
-               pstEthCsPktInfo->ucDSAP = ((struct bcm_eth_llc_frame *)pvEthPayload)->DSAP;
+               pstEthCsPktInfo->ucDSAP =
+                       ((struct bcm_eth_llc_frame *)pvEthPayload)->DSAP;
                if (pstEthCsPktInfo->ucDSAP == 0xAA && ((struct bcm_eth_llc_frame *)pvEthPayload)->SSAP == 0xAA) {
                        /* SNAP Frame */
                        pstEthCsPktInfo->eNwpktEthFrameType = eEth802LLCSNAPFrame;
@@ -1164,10 +1180,23 @@ static void EThCSGetPktInfo(struct bcm_mini_adapter *Adapter, PVOID pvEthPayload
                pstEthCsPktInfo->eNwpktIPFrameType = eNonIPPacket;
 
        pstEthCsPktInfo->usEtherType = ((struct bcm_eth_header *)pvEthPayload)->u16Etype;
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL,  "EthCsPktInfo->eNwpktIPFrameType : %x\n", pstEthCsPktInfo->eNwpktIPFrameType);
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL,  "EthCsPktInfo->eNwpktEthFrameType : %x\n", pstEthCsPktInfo->eNwpktEthFrameType);
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL,  "EthCsPktInfo->usEtherType : %x\n", pstEthCsPktInfo->usEtherType);
+       BCM_DEBUG_PRINT(Adapter,
+                       DBG_TYPE_TX,
+                       IPV4_DBG,
+                       DBG_LVL_ALL,
+                       "EthCsPktInfo->eNwpktIPFrameType : %x\n",
+                       pstEthCsPktInfo->eNwpktIPFrameType);
+       BCM_DEBUG_PRINT(Adapter,
+                       DBG_TYPE_TX,
+                       IPV4_DBG,
+                       DBG_LVL_ALL,
+                       "EthCsPktInfo->eNwpktEthFrameType : %x\n",
+                       pstEthCsPktInfo->eNwpktEthFrameType);
+       BCM_DEBUG_PRINT(Adapter,
+                       DBG_TYPE_TX,
+                       IPV4_DBG,
+                       DBG_LVL_ALL,
+                       "EthCsPktInfo->usEtherType : %x\n",
+                       pstEthCsPktInfo->usEtherType);
 }
 
-
-