diff options
author | Joe Perches <joe@perches.com> | 2014-02-18 19:37:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-19 00:14:09 +0100 |
commit | e83abe37ba492514943f45f7bb1ba6b055eb88b0 (patch) | |
tree | 192260c8c2f01c9e47653bc0ad270241daeceb77 /net/hsr/hsr_main.c | |
parent | ipv6: remove some unused include in flowlabel (diff) | |
download | linux-e83abe37ba492514943f45f7bb1ba6b055eb88b0.tar.xz linux-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 'net/hsr/hsr_main.c')
-rw-r--r-- | net/hsr/hsr_main.c | 4 |
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, |