瀏覽代碼

bna: Convert MAC_ADDRLEN uses to ETH_ALEN

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>
Joe Perches 13 年之前
父節點
當前提交
288e127170
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/net/ethernet/brocade/bna/cna.h

+ 1 - 2
drivers/net/ethernet/brocade/bna/cna.h

@@ -43,8 +43,7 @@ extern char bfa_version[];
 
 
 #pragma pack(1)
 #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()
 #pragma pack()