diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2016-03-30 05:11:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-04 23:16:36 +0300 |
commit | eefb52d1ec8eb1354ff1bf55811a0da74bffccb8 (patch) | |
tree | 5efbd8ba81198bb55430a7cc4df7635b442b12f0 /drivers/net/ethernet/cadence/macb.c | |
parent | aa50b55262d459f69c7b32eb7ce38cde84cc089b (diff) | |
download | linux-eefb52d1ec8eb1354ff1bf55811a0da74bffccb8.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.c')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 2ba0934e52dc..01a8ffbfc464 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -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); |