r8152: remove extra action copying ethernet address
authorMario Limonciello <mario.limonciello@dell.com>
Thu, 4 Apr 2019 18:46:52 +0000 (13:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2019 01:21:46 +0000 (18:21 -0700)
This already happens later on in `rtl8152_set_mac_address`

Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index 86c8c64fbb0f33e920a5fbe77e2d73fe69c14991..dc1bfff0b5dc560a7dfded665a1818dafca90660 100644 (file)
@@ -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);