net: ethoc: Use ether_addr_copy()
authorTobias Klauser <tklauser@distanz.ch>
Fri, 17 Mar 2017 10:52:15 +0000 (11:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 00:16:56 +0000 (17:16 -0700)
commitde6b08fd82087778c579dc3f3c28bb1c878a993a
tree84e2fff26c7bfe057c8064da55bf7e31ecb496a2
parent0ed48440979b9fe870869be8be30dcf679aa27d3
net: ethoc: Use ether_addr_copy()

Use ether_addr_copy() instead of memcpy() to set netdev->dev_addr (which
is 2-byte aligned).

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c