net: macb: Use ether_addr_copy over memcpy
Checkpatch suggests using ether_addr_copy over memcpy to copy the mac address. Acked-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aa50b55262
commit
eefb52d1ec
|
@ -2973,7 +2973,7 @@ static int macb_probe(struct platform_device *pdev)
|
|||
|
||||
mac = of_get_mac_address(np);
|
||||
if (mac)
|
||||
memcpy(bp->dev->dev_addr, mac, ETH_ALEN);
|
||||
ether_addr_copy(bp->dev->dev_addr, mac);
|
||||
else
|
||||
macb_get_hwaddr(bp);
|
||||
|
||||
|
|
Loading…
Reference in New Issue