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
@@ -1138,7 +1138,7 @@ static int au1000_probe(struct platform_device *pdev)
|
||||
aup->phy1_search_mac0 = 1;
|
||||
} else {
|
||||
if (is_valid_ether_addr(pd->mac)) {
|
||||
memcpy(dev->dev_addr, pd->mac, 6);
|
||||
memcpy(dev->dev_addr, pd->mac, ETH_ALEN);
|
||||
} else {
|
||||
/* Set a random MAC since no valid provided by platform_data. */
|
||||
eth_hw_addr_random(dev);
|
||||
|
Reference in New Issue
Block a user