Commit eefb52d1 authored by Moritz Fischer's avatar Moritz Fischer Committed by David S. Miller

net: macb: Use ether_addr_copy over memcpy

Checkpatch suggests using ether_addr_copy over memcpy
to copy the mac address.
Acked-by: default avatarMichal Simek <michal.simek@xilinx.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarMoritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa50b552
...@@ -2973,7 +2973,7 @@ static int macb_probe(struct platform_device *pdev) ...@@ -2973,7 +2973,7 @@ static int macb_probe(struct platform_device *pdev)
mac = of_get_mac_address(np); mac = of_get_mac_address(np);
if (mac) if (mac)
memcpy(bp->dev->dev_addr, mac, ETH_ALEN); ether_addr_copy(bp->dev->dev_addr, mac);
else else
macb_get_hwaddr(bp); macb_get_hwaddr(bp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment