mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
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: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3ec51bb250
commit
97d173c643
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user