staging: ks7010: use ether_addr_copy in ks_wlan_net_start
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 4 May 2018 04:16:40 +0000 (06:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2018 01:58:40 +0000 (18:58 -0700)
Instead of use memcpy for copying ethernet addresses, use
ether_addr_copy that do the same.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c

index bb8ec04..a5401db 100644 (file)
@@ -2633,7 +2633,7 @@ int ks_wlan_net_start(struct net_device *dev)
        timer_setup(&update_phyinfo_timer, ks_wlan_update_phyinfo_timeout, 0);
 
        /* dummy address set */
-       memcpy(priv->eth_addr, dummy_addr, ETH_ALEN);
+       ether_addr_copy(priv->eth_addr, dummy_addr);
        ether_addr_copy(dev->dev_addr, priv->eth_addr);
 
        /* The ks_wlan-specific entries in the device structure. */