ethernet: Convert mac address uses of 6 to ETH_ALEN
Use the normal #define to help grep find mac addresses and ensure that addresses are aligned. pasemi.h has an unaligned access to mac_addr, unchanged for now. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Olof Johansson <olof@lixom.net> # pasemi_mac pieces Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
574e2af7c0
commit
1409a93274
@@ -536,10 +536,10 @@ static void netxen_p2_nic_set_multi(struct net_device *netdev)
|
||||
{
|
||||
struct netxen_adapter *adapter = netdev_priv(netdev);
|
||||
struct netdev_hw_addr *ha;
|
||||
u8 null_addr[6];
|
||||
u8 null_addr[ETH_ALEN];
|
||||
int i;
|
||||
|
||||
memset(null_addr, 0, 6);
|
||||
memset(null_addr, 0, ETH_ALEN);
|
||||
|
||||
if (netdev->flags & IFF_PROMISC) {
|
||||
|
||||
|
@@ -2149,7 +2149,7 @@ struct ql_adapter {
|
||||
struct timer_list timer;
|
||||
atomic_t lb_count;
|
||||
/* Keep local copy of current mac address. */
|
||||
char current_mac_addr[6];
|
||||
char current_mac_addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user