mirror of
https://github.com/torvalds/linux.git
synced 2026-02-04 15:28:49 +08:00
staging: most: replace memcpy by ether_addr_copy
This patch replaces memcpy() by the preferred function ether_addr_copy(). Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
47af41b0d9
commit
d58b0ee39a
@@ -467,7 +467,7 @@ static int aim_rx_data(struct mbo *mbo)
|
||||
|
||||
if (nd->is_mamac) {
|
||||
/* dest */
|
||||
memcpy(skb_put(skb, ETH_ALEN), dev->dev_addr, ETH_ALEN);
|
||||
ether_addr_copy(skb_put(skb, ETH_ALEN), dev->dev_addr);
|
||||
|
||||
/* src */
|
||||
memcpy(skb_put(skb, 4), &zero, 4);
|
||||
@@ -554,7 +554,7 @@ void most_deliver_netinfo(struct most_interface *iface,
|
||||
return;
|
||||
|
||||
if (mac_addr)
|
||||
memcpy(dev->dev_addr, mac_addr, ETH_ALEN);
|
||||
ether_addr_copy(dev->dev_addr, mac_addr);
|
||||
|
||||
if (nd->link_stat != link_stat) {
|
||||
nd->link_stat = link_stat;
|
||||
|
||||
Reference in New Issue
Block a user