aboutsummaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_main.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-02-18 10:37:20 -0800
committerDavid S. Miller <davem@davemloft.net>2014-02-18 18:14:09 -0500
commite83abe37ba492514943f45f7bb1ba6b055eb88b0 (patch)
tree192260c8c2f01c9e47653bc0ad270241daeceb77 /net/hsr/hsr_main.c
parentipv6: remove some unused include in flowlabel (diff)
downloadlinux-dev-e83abe37ba492514943f45f7bb1ba6b055eb88b0.tar.xz
linux-dev-e83abe37ba492514943f45f7bb1ba6b055eb88b0.zip
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>
Diffstat (limited to '')
-rw-r--r--net/hsr/hsr_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/hsr/hsr_main.c b/net/hsr/hsr_main.c
index af68dd83a4e3..10010c543edf 100644
--- a/net/hsr/hsr_main.c
+++ b/net/hsr/hsr_main.c
@@ -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,