summaryrefslogtreecommitdiff
path: root/net/802
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-10-08 10:53:39 -0700
committerDavid S. Miller <davem@davemloft.net>2021-10-09 11:55:01 +0100
commitea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8 (patch)
treebeeede725830633b0e8314873371ce207a3f2929 /net/802
parent794a69b3f803fcdc31fb0060843b4df13e7de101 (diff)
net: use dev_addr_set()
Use dev_addr_set() instead of writing directly to netdev->dev_addr in various misc and old drivers. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/802')
-rw-r--r--net/802/hippi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/802/hippi.c b/net/802/hippi.c
index f80b33a8f7e0..887e73d520e4 100644
--- a/net/802/hippi.c
+++ b/net/802/hippi.c
@@ -121,7 +121,7 @@ int hippi_mac_addr(struct net_device *dev, void *p)
struct sockaddr *addr = p;
if (netif_running(dev))
return -EBUSY;
- memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
+ dev_addr_set(dev, addr->sa_data);
return 0;
}
EXPORT_SYMBOL(hippi_mac_addr);