summaryrefslogtreecommitdiff
path: root/drivers/staging/ozwpan
diff options
context:
space:
mode:
authorAnil Belur <askb23@gmail.com>2014-05-19 13:42:48 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-23 16:10:50 +0400
commitae35f26644d1af10bfc96c5dffc5103c84a9b3c4 (patch)
treeb071f343b4af686e7fbe0c5f1f0e07078bfff1ed /drivers/staging/ozwpan
parent01c48ad3ea7f976ab9e02dca642c52f7cf1256b9 (diff)
downloadlinux-ae35f26644d1af10bfc96c5dffc5103c84a9b3c4.tar.xz
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')
-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;