summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDilek Uzulmez <dilekuzulmez@gmail.com>2014-10-09 22:46:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-20 10:29:28 +0800
commit25ef419dc92a16d64380d85655b4381a2fb22dfb (patch)
tree46e5154042f6ab7f8091b8352bda3327a8106949
parentb8576413516065cba71b1dd48174397737337e40 (diff)
downloadlwn-25ef419dc92a16d64380d85655b4381a2fb22dfb.tar.gz
lwn-25ef419dc92a16d64380d85655b4381a2fb22dfb.zip
staging: vt6655: Use ether_addr_copy function
This patch fixes the following checkpatch.pl warnings: WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)" in file device_main.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>
-rw-r--r--drivers/staging/vt6655/device_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 3eb8e5c5366e..ed5e71237007 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -1591,7 +1591,7 @@ static int device_open(struct net_device *dev)
device_init_registers(pDevice);
MACvReadEtherAddress(pDevice->PortOffset, pDevice->abyCurrentNetAddr);
- memcpy(pDevice->pMgmt->abyMACAddr, pDevice->abyCurrentNetAddr, ETH_ALEN);
+ ether_addr_copy(pDevice->pMgmt->abyMACAddr, pDevice->abyCurrentNetAddr);
device_set_multi(pDevice->dev);
// Init for Key Management