mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
r8152: remove extra action copying ethernet address
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>
This commit is contained in:
parent
d1edc08555
commit
78fdde30d4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user