aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-02-18 20:28:54 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-21 12:57:25 -0800
commit40d5432cd50edf2b8a8a466a2ad48b487fec17f6 (patch)
treee7d1505fbe5b5fa5f7273b312e42f1ad62bfa212 /drivers/net/phy
parentqed: Read device port count from the shmem (diff)
downloadlinux-dev-40d5432cd50edf2b8a8a466a2ad48b487fec17f6.tar.xz
linux-dev-40d5432cd50edf2b8a8a466a2ad48b487fec17f6.zip
net: phy: remove orphaned register read in genphy_read_status
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>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r--drivers/net/phy/phy_device.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 7e71124bb20e..803197fdd87d 100644
--- 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;