summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ozwpan/ozproto.c
diff options
context:
space:
mode:
authorAnil Belur2014-05-19 11:42:48 +0200
committerGreg Kroah-Hartman2014-05-23 14:10:50 +0200
commitae35f26644d1af10bfc96c5dffc5103c84a9b3c4 (patch)
treeb071f343b4af686e7fbe0c5f1f0e07078bfff1ed /drivers/staging/ozwpan/ozproto.c
parentstaging: ozwpan: remove redundant NULL check for devs (diff)
downloadkernel-qcow2-linux-ae35f26644d1af10bfc96c5dffc5103c84a9b3c4.tar.gz
kernel-qcow2-linux-ae35f26644d1af10bfc96c5dffc5103c84a9b3c4.tar.xz
kernel-qcow2-linux-ae35f26644d1af10bfc96c5dffc5103c84a9b3c4.zip
staging: ozwpan: ozproto.c fix for "WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)"
Fixed the warning message by replacing memcpy() with ether_addr_copy() Signed-off-by: Anil Belur <askb23@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ozwpan/ozproto.c')
-rw-r--r--drivers/staging/ozwpan/ozproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c
index 767cac493074..110205599190 100644
--- a/drivers/staging/ozwpan/ozproto.c
+++ b/drivers/staging/ozwpan/ozproto.c
@@ -792,7 +792,7 @@ int oz_get_pd_list(struct oz_mac_addr *addr, int max_count)
if (count >= max_count)
break;
pd = container_of(e, struct oz_pd, link);
- memcpy(&addr[count++], pd->mac_addr, ETH_ALEN);
+ ether_addr_copy((u8 *)&addr[count++], pd->mac_addr);
}
spin_unlock_bh(&g_polling_lock);
return count;