Skip to content

Commit

Permalink
Staging: bcm: Remove typedef for TransportHeaderT and call directly.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin McKinney authored and Greg Kroah-Hartman committed Jan 7, 2013
1 parent 8ab1992 commit c5485e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/bcm/Protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/bcm/Qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c5485e9

Please sign in to comment.