Messages in this thread Patch in this message | | | From | Joe Perches <> | Subject | [PATCH net-next 3/5] bna: Convert MAC_ADDRLEN uses to ETH_ALEN | Date | Wed, 16 Nov 2011 11:38:04 -0800 |
| |
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches <joe@perches.com> --- drivers/net/ethernet/brocade/bna/cna.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/brocade/bna/cna.h b/drivers/net/ethernet/brocade/bna/cna.h index 1b3e90d..32e8f17 100644 --- a/drivers/net/ethernet/brocade/bna/cna.h +++ b/drivers/net/ethernet/brocade/bna/cna.h @@ -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() -- 1.7.6.405.gc1be0
| |