From: Anil Belur <ask...@gmail.com>

Fixed the warning message by replacing memcpy() with ether_addr_copy()

Signed-off-by: Anil Belur <ask...@gmail.com>
---
 drivers/staging/ozwpan/ozproto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c
index f09acd0..1c80132 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;
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to