diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-01-23 18:40:35 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-24 17:07:23 -0800 |
commit | 9f16e0fa1079022632880da3e8346537ba4eeecc (patch) | |
tree | ebf2b3f8db9cf3534d3a11b487ecf026a519fc5c /drivers/net/usb/asix_devices.c | |
parent | caaba96131b3a132590316c49887af85e07930b6 (diff) | |
download | linux-9f16e0fa1079022632880da3e8346537ba4eeecc.tar.gz linux-9f16e0fa1079022632880da3e8346537ba4eeecc.tar.bz2 linux-9f16e0fa1079022632880da3e8346537ba4eeecc.zip |
net: usb: asix: remove redundant assignment to variable reg
Variable reg is being masked however the variable is never read
after this. The assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20220123184035.112785-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/usb/asix_devices.c')
-rw-r--r-- | drivers/net/usb/asix_devices.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c index 4514d35ef4c4..9b72334aabb6 100644 --- a/drivers/net/usb/asix_devices.c +++ b/drivers/net/usb/asix_devices.c @@ -858,7 +858,6 @@ static int marvell_phy_init(struct usbnet *dev) reg = asix_mdio_read(dev->net, dev->mii.phy_id, MII_MARVELL_LED_CTRL); netdev_dbg(dev->net, "MII_MARVELL_LED_CTRL (2) = 0x%04x\n", reg); - reg &= 0xfc0f; } return 0; |