hsr: Use ether_addr_copy
It's slightly smaller/faster for some architectures. Make sure def_multicast_addr is __aligned(2) Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
42621fd394
commit
e83abe37ba
@@ -138,8 +138,8 @@ static int hsr_netdev_notify(struct notifier_block *nb, unsigned long event,
|
||||
break;
|
||||
|
||||
if (dev == hsr_priv->slave[0])
|
||||
memcpy(hsr_priv->dev->dev_addr,
|
||||
hsr_priv->slave[0]->dev_addr, ETH_ALEN);
|
||||
ether_addr_copy(hsr_priv->dev->dev_addr,
|
||||
hsr_priv->slave[0]->dev_addr);
|
||||
|
||||
/* Make sure we recognize frames from ourselves in hsr_rcv() */
|
||||
res = hsr_create_self_node(&hsr_priv->self_node_db,
|
||||
|
Reference in New Issue
Block a user