]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: most: replace memcpy by ether_addr_copy
authorChristian Gromm <christian.gromm@microchip.com>
Thu, 15 Oct 2015 11:28:58 +0000 (13:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:09:41 +0000 (23:09 -0700)
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>
drivers/staging/most/aim-network/networking.c

index f0d9a439544e98e93cf85dcad89e5d4dd514a102..4334e5197f05895ea43faf1ea239556ae838ce4c 100644 (file)
@@ -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;