Staging: bcm: Remove typedef for TransportHeaderT and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Sat, 22 Dec 2012 19:27:56 +0000 (14:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 18:56:54 +0000 (10:56 -0800)
This patch removes typedef for TransportHeaderT, and
changes the name of the struct to bcm_transport_header.
In addition, any calls to struct "xporthdr" are
changed to call directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Protocol.h
drivers/staging/bcm/Qos.c

index adfa48d4da3cc29171c91bbeb9d2d99a545448b2..9818128d9320d524d692743b8b43782f84ff0311 100644 (file)
@@ -15,13 +15,12 @@ struct ArpHeader {
        unsigned char ar_tip[4];        /* target IP address        */
 };
 
-struct TransportHeaderT {
+struct bcm_transport_header {
        union {
                struct udphdr uhdr;
                struct tcphdr thdr;
        };
 } __packed;
-typedef struct TransportHeaderT xporthdr;
 
 enum bcm_ip_frame_type {
        eNonIPPacket,
index cc2b1549b38506fe7a7273fe01c0c81d4547060c..8d142a547e7fd9e29b1037af075d225b3a51924c 100644 (file)
@@ -208,12 +208,12 @@ static USHORT     IpVersion4(struct bcm_mini_adapter *Adapter,
                           struct iphdr *iphd,
                           struct bcm_classifier_rule *pstClassifierRule)
 {
-       xporthdr                *xprt_hdr=NULL;
+       struct bcm_transport_header *xprt_hdr = NULL;
        BOOLEAN bClassificationSucceed=FALSE;
 
        BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "========>");
 
-       xprt_hdr=(xporthdr *)((PUCHAR)iphd + sizeof(struct iphdr));
+       xprt_hdr=(struct bcm_transport_header *)((PUCHAR)iphd + sizeof(struct iphdr));
 
        do {
                BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Trying to see Direction = %d %d",