Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97d173c6 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: use ether_addr_copy in ks_wlan_net_start



Instead of use memcpy for copying ethernet addresses, use
ether_addr_copy that do the same.

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3ec51bb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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. */