diff mbox

[net-next,3/5] bna: Convert MAC_ADDRLEN uses to ETH_ALEN

Message ID 8a6f9ad67a3d580565cafb7a44cec0165831c35d.1321472143.git.joe@perches.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Joe Perches Nov. 16, 2011, 7:38 p.m. UTC
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(-)

Comments

Rasesh Mody Nov. 17, 2011, 12:56 a.m. UTC | #1
>From: Joe Perches [mailto:joe@perches.com]
>Sent: Wednesday, November 16, 2011 11:38 AM
>
>Reduce the number of #defines, use the normal #define from if_ether.h

Patch looks fine.
Thanks,
Rasesh

Acked-by: Rasesh Mody <rmody@brocade.com>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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()