projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ebcebb
)
net: phy: remove orphaned register read in genphy_read_status
author
Heiner Kallweit
<hkallweit1@gmail.com>
Mon, 18 Feb 2019 19:28:54 +0000
(20:28 +0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 21 Feb 2019 20:57:25 +0000
(12:57 -0800)
After recent changes to genphy_read_status() this orphaned register
read remained as leftover. So remove it.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy_device.c
b/drivers/net/phy/phy_device.c
index 7e71124bb20e77e1f966d0ad477da05330bc9d99..803197fdd87de23ff373d4482df8e6d6c2fa5724 100644
(file)
--- a/
drivers/net/phy/phy_device.c
+++ b/
drivers/net/phy/phy_device.c
@@
-1785,10
+1785,6
@@
int genphy_read_status(struct phy_device *phydev)
mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa);
- adv = phy_read(phydev, MII_ADVERTISE);
- if (adv < 0)
- return adv;
-
phydev->speed = SPEED_10;
phydev->duplex = DUPLEX_HALF;
phydev->pause = 0;