diff options
author | Anil Belur <askb23@gmail.com> | 2014-05-19 19:42:48 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-23 21:10:50 +0900 |
commit | ae35f26644d1af10bfc96c5dffc5103c84a9b3c4 (patch) | |
tree | b071f343b4af686e7fbe0c5f1f0e07078bfff1ed | |
parent | 01c48ad3ea7f976ab9e02dca642c52f7cf1256b9 (diff) | |
download | op-kernel-dev-ae35f26644d1af10bfc96c5dffc5103c84a9b3c4.zip op-kernel-dev-ae35f26644d1af10bfc96c5dffc5103c84a9b3c4.tar.gz |
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>
-rw-r--r-- | drivers/staging/ozwpan/ozproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c index 767cac4..1102055 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; |