提交 ae35f266 编写于 作者: A Anil Belur 提交者: Greg Kroah-Hartman

staging: ozwpan: ozproto.c fix for "WARNING: Prefer ether_addr_copy() over...

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: NAnil Belur <askb23@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 01c48ad3
...@@ -792,7 +792,7 @@ int oz_get_pd_list(struct oz_mac_addr *addr, int max_count) ...@@ -792,7 +792,7 @@ int oz_get_pd_list(struct oz_mac_addr *addr, int max_count)
if (count >= max_count) if (count >= max_count)
break; break;
pd = container_of(e, struct oz_pd, link); 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); spin_unlock_bh(&g_polling_lock);
return count; return count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册