Commit d58b0ee3 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: replace memcpy by ether_addr_copy

This patch replaces memcpy() by the preferred function ether_addr_copy().
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 47af41b0
...@@ -467,7 +467,7 @@ static int aim_rx_data(struct mbo *mbo) ...@@ -467,7 +467,7 @@ static int aim_rx_data(struct mbo *mbo)
if (nd->is_mamac) { if (nd->is_mamac) {
/* dest */ /* dest */
memcpy(skb_put(skb, ETH_ALEN), dev->dev_addr, ETH_ALEN); ether_addr_copy(skb_put(skb, ETH_ALEN), dev->dev_addr);
/* src */ /* src */
memcpy(skb_put(skb, 4), &zero, 4); memcpy(skb_put(skb, 4), &zero, 4);
...@@ -554,7 +554,7 @@ void most_deliver_netinfo(struct most_interface *iface, ...@@ -554,7 +554,7 @@ void most_deliver_netinfo(struct most_interface *iface,
return; return;
if (mac_addr) 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) { if (nd->link_stat != link_stat) {
nd->link_stat = link_stat; nd->link_stat = link_stat;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment