net:drivers/net: Miscellaneous conversions to ETH_ALEN
Convert the memset/memcpy uses of 6 to ETH_ALEN where appropriate. Also convert some struct definitions and u8 array declarations of [6] to ETH_ALEN. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0b3d8e087b
commit
d458cdf712
@@ -2514,7 +2514,7 @@ static int mv643xx_eth_shared_of_add_port(struct platform_device *pdev,
|
||||
|
||||
mac_addr = of_get_mac_address(pnp);
|
||||
if (mac_addr)
|
||||
memcpy(ppd.mac_addr, mac_addr, 6);
|
||||
memcpy(ppd.mac_addr, mac_addr, ETH_ALEN);
|
||||
|
||||
mv643xx_eth_property(pnp, "tx-queue-size", ppd.tx_queue_size);
|
||||
mv643xx_eth_property(pnp, "tx-sram-addr", ppd.tx_sram_addr);
|
||||
@@ -2696,7 +2696,7 @@ static void set_params(struct mv643xx_eth_private *mp,
|
||||
struct net_device *dev = mp->dev;
|
||||
|
||||
if (is_valid_ether_addr(pd->mac_addr))
|
||||
memcpy(dev->dev_addr, pd->mac_addr, 6);
|
||||
memcpy(dev->dev_addr, pd->mac_addr, ETH_ALEN);
|
||||
else
|
||||
uc_addr_get(mp, dev->dev_addr);
|
||||
|
||||
|
Reference in New Issue
Block a user