diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2026-02-06 17:52:53 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2026-02-06 17:52:53 +0000 |
| commit | 4ac3081b282800158df7abe93f307d76e1b5b808 (patch) | |
| tree | 25ff0a0dac76e86c6bb2207a11e2858981d72e08 | |
| parent | 7bc7692b940b0c2af0f4a89ae2ef6fbba0bc3381 (diff) | |
qlnxe: Remove a pointless copy back from the link-layer address
On ifnet attaching, ether_ifattach() makes the link-layer address by
shadow copying the ha->primary_mac. Well, the link-layer address will
not be altered during attaching, thus it is pointless to copy it back.
No functional change intended.
Reviewed by: kbowling
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D54883
| -rw-r--r-- | sys/dev/qlnx/qlnxe/qlnx_os.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/qlnx/qlnxe/qlnx_os.c b/sys/dev/qlnx/qlnxe/qlnx_os.c index 99110e5e2d8f..9616d9f4d611 100644 --- a/sys/dev/qlnx/qlnxe/qlnx_os.c +++ b/sys/dev/qlnx/qlnxe/qlnx_os.c @@ -2392,8 +2392,6 @@ qlnx_init_ifnet(device_t dev, qlnx_host_t *ha) ifmedia_set(&ha->media, (IFM_ETHER | IFM_AUTO)); ether_ifattach(ifp, ha->primary_mac); - bcopy(if_getlladdr(ha->ifp), ha->primary_mac, ETHER_ADDR_LEN); - QL_DPRINT2(ha, "exit\n"); return; |
