diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-26 19:52:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-28 13:46:31 +0200 |
commit | 707182e45b8197705a82d918458ce585fdea7097 (patch) | |
tree | d8f5c80a402afabfcc337537524ab7f18cec786e /drivers/firewire | |
parent | Merge branch 'tcp-tx-side-cleanups' (diff) | |
download | linux-707182e45b8197705a82d918458ce585fdea7097.tar.xz linux-707182e45b8197705a82d918458ce585fdea7097.zip |
media: use eth_hw_addr_set()
Commit 406f42fa0d3c ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it go through appropriate helpers.
Convert media from memcpy(... 6) and memcpy(... addr_len) to
eth_hw_addr_set():
@@
expression dev, np;
@@
- memcpy(dev->dev_addr, np, 6)
+ eth_hw_addr_set(dev, np)
@@
- memcpy(dev->dev_addr, np, dev->addr_len)
+ eth_hw_addr_set(dev, np)
Make sure we don't cast off const qualifier from dev->dev_addr.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions