diff options
| author | Heiner Kallweit <[email protected]> | 2019-02-18 20:28:54 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-21 12:57:25 -0800 |
| commit | 40d5432cd50edf2b8a8a466a2ad48b487fec17f6 (patch) | |
| tree | e7d1505fbe5b5fa5f7273b312e42f1ad62bfa212 | |
| parent | 0ebcebbef1cc50fb94ae17917208b04868de9c38 (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
| -rw-r--r-- | drivers/net/phy/phy_device.c | 4 |
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; |