Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c71ea54 authored by Dilek Uzulmez's avatar Dilek Uzulmez Committed by Greg Kroah-Hartman
Browse files

staging: octeon: Fix warning of prefer ether_addr_copy.



This patch fixes the following checkpatch.pl warnings:
WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet
addresses are __aligned(2)" in file ethernet.c
Pahole shows that the addresses are aligned.

Signed-off-by: default avatarDilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9a114e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -452,7 +452,7 @@ int cvm_oct_common_init(struct net_device *dev)
		mac = of_get_mac_address(priv->of_node);

	if (mac)
		memcpy(dev->dev_addr, mac, ETH_ALEN);
		ether_addr_copy(dev->dev_addr, mac);
	else
		eth_hw_addr_random(dev);