diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2021-10-02 00:32:23 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-07-27 09:46:59 +0300 |
| commit | 43da399e509e338d9721d9cb4ecb19bb7686ef7c (patch) | |
| tree | ab58955159ef409241c0b53a74a57f546a89c6e6 /include | |
| parent | 3fb402bd20e2ed864e829faa59c044a83144f54e (diff) | |
| download | linux-43da399e509e338d9721d9cb4ecb19bb7686ef7c.tar.xz | |
ethernet: use eth_hw_addr_set() instead of ether_addr_copy()
[ Upstream commit f3956ebb3bf06ab2266ad5ee2214aed46405810c ]
Convert Ethernet from ether_addr_copy() to eth_hw_addr_set():
@@
expression dev, np;
@@
- ether_addr_copy(dev->dev_addr, np)
+ eth_hw_addr_set(dev, np)
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 1d6d537dc55d ("net: ethernet: mtk_eth_soc: handle probe deferral")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/etherdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 7f28fa702bb7..ca0e26a858be 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -323,7 +323,7 @@ static inline void eth_hw_addr_inherit(struct net_device *dst, struct net_device *src) { dst->addr_assign_type = src->addr_assign_type; - ether_addr_copy(dst->dev_addr, src->dev_addr); + eth_hw_addr_set(dst, src->dev_addr); } /** |
