diff options
author | Dilek Uzulmez <dilekuzulmez@gmail.com> | 2014-10-07 15:58:48 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-20 10:29:13 +0800 |
commit | 6c71ea543a0f0132edbe40854b0e31bf9507af5b (patch) | |
tree | 49daa21627f733e453f9c64f8a487ff8f5c024b2 /drivers | |
parent | c9a114e70ab0da81797da84e5bc8737e4e82ad91 (diff) | |
download | op-kernel-dev-6c71ea543a0f0132edbe40854b0e31bf9507af5b.zip op-kernel-dev-6c71ea543a0f0132edbe40854b0e31bf9507af5b.tar.gz |
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: Dilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/octeon/ethernet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c index 8f9e3fb..47d4277 100644 --- a/drivers/staging/octeon/ethernet.c +++ b/drivers/staging/octeon/ethernet.c @@ -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); |