[B/D/E/OEM-B/OEM-OSP1-B] [PATCH 1/3] r8152: remove extra action copying ethernet address
Kai-Heng Feng
kai.heng.feng at canonical.com
Mon Oct 7 10:45:02 UTC 2019
From: Mario Limonciello <mario.limonciello at dell.com>
BugLink: https://bugs.launchpad.net/bugs/1847063
This already happens later on in `rtl8152_set_mac_address`
Signed-off-by: Mario Limonciello <mario.limonciello at dell.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit 78fdde30d4bd3175f77bcdfc1bb18f96e3dedef0)
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
---
drivers/net/usb/r8152.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index ada7efe926e7..ba11cc7dad04 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -1212,7 +1212,6 @@ static int vendor_mac_passthru_addr_read(struct r8152 *tp, struct sockaddr *sa)
goto amacout;
}
memcpy(sa->sa_data, buf, 6);
- ether_addr_copy(tp->netdev->dev_addr, sa->sa_data);
netif_info(tp, probe, tp->netdev,
"Using pass-thru MAC addr %pM\n", sa->sa_data);
--
2.17.1
More information about the kernel-team
mailing list