Skip to content

Commit

Permalink
bna: Convert MAC_ADDRLEN uses to ETH_ALEN
Browse files Browse the repository at this point in the history
Reduce the number of #defines, use the normal #define from if_ether.h

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 17, 2011
1 parent 104bf3f commit 288e127
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/brocade/bna/cna.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ extern char bfa_version[];

#pragma pack(1)

#define MAC_ADDRLEN (6)
typedef struct mac { u8 mac[MAC_ADDRLEN]; } mac_t;
typedef struct mac { u8 mac[ETH_ALEN]; } mac_t;

#pragma pack()

Expand Down

0 comments on commit 288e127

Please sign in to comment.