[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459303875-3362-5-git-send-email-moritz.fischer@ettus.com>
Date: Tue, 29 Mar 2016 19:11:14 -0700
From: Moritz Fischer <moritz.fischer@...us.com>
To: nicolas.ferre@...el.com
Cc: michal.simek@...inx.com, joe@...ches.com, davem@...emloft.net,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
moritz.fischer.private@...il.com,
Moritz Fischer <moritz.fischer@...us.com>
Subject: [PATCH v3 4/5] 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@...inx.com>
Acked-by: Nicolas Ferre <nicolas.ferre@...el.com>
Signed-off-by: Moritz Fischer <moritz.fischer@...us.com>
---
drivers/net/ethernet/cadence/macb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index 2ba0934..01a8ffb 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);
--
2.7.4
Powered by blists - more mailing lists