projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caaba96
)
net: usb: asix: remove redundant assignment to variable reg
author
Colin Ian King
<colin.i.king@gmail.com>
Sun, 23 Jan 2022 18:40:35 +0000
(18:40 +0000)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 25 Jan 2022 01:07:23 +0000
(17:07 -0800)
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>
drivers/net/usb/asix_devices.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/asix_devices.c
b/drivers/net/usb/asix_devices.c
index 4514d35ef4c48f72135713f78cdf371a730bfc65..9b72334aabb6942b83a794144340ed3a2948fbbb 100644
(file)
--- 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;