diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-08 19:53:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-09 12:55:01 +0200 |
commit | ea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8 (patch) | |
tree | beeede725830633b0e8314873371ce207a3f2929 /net/netrom/nr_dev.c | |
parent | Merge branch 'dev_addr-direct-writes' (diff) | |
download | linux-ea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8.tar.xz linux-ea52a0b58e41c3b2b9e97ff13fe0da9c9e430ea8.zip |
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/netrom/nr_dev.c')
-rw-r--r-- | net/netrom/nr_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netrom/nr_dev.c b/net/netrom/nr_dev.c index 29e418c8c6c3..d1ca413d3317 100644 --- a/net/netrom/nr_dev.c +++ b/net/netrom/nr_dev.c @@ -111,7 +111,7 @@ static int __must_check nr_set_mac_address(struct net_device *dev, void *addr) ax25_listen_release((ax25_address *)dev->dev_addr, NULL); } - memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); + dev_addr_set(dev, sa->sa_data); return 0; } |