Skip to content

Commit

Permalink
fddi: use eth_hw_addr_set()
Browse files Browse the repository at this point in the history
Convert from memcpy(), include is needed.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
kuba-moo authored and davem330 committed Oct 2, 2021
1 parent 1235568 commit 4d3d2c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/fddi/skfp/skfddi.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ static const char * const boot_msg =
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/fddidevice.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
Expand Down Expand Up @@ -433,7 +434,7 @@ static int skfp_driver_init(struct net_device *dev)
}
read_address(smc, NULL);
pr_debug("HW-Addr: %pMF\n", smc->hw.fddi_canon_addr.a);
memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, ETH_ALEN);
eth_hw_addr_set(dev, smc->hw.fddi_canon_addr.a);

smt_reset_defaults(smc, 0);

Expand Down Expand Up @@ -500,7 +501,7 @@ static int skfp_open(struct net_device *dev)
* address.
*/
read_address(smc, NULL);
memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, ETH_ALEN);
eth_hw_addr_set(dev, smc->hw.fddi_canon_addr.a);

init_smt(smc, NULL);
smt_online(smc, 1);
Expand Down

0 comments on commit 4d3d2c8

Please sign in to comment.