From: Heiner Kallweit Date: Mon, 18 Feb 2019 19:28:54 +0000 (+0100) Subject: net: phy: remove orphaned register read in genphy_read_status X-Git-Tag: v5.1-rc1~178^2~149^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=40d5432cd50edf2b8a8a466a2ad48b487fec17f6;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: David S. Miller --- 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;