Revert "net: phy: bcm84881: Fix some error handling paths"
This reverts commit 5f86c38ebf
.
This commit is contained in:
parent
10d6f6c019
commit
72f812e3fa
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ static int bcm84881_aneg_done(struct phy_device *phydev)
|
|||
|
||||
bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR);
|
||||
if (bmsr < 0)
|
||||
return bmsr;
|
||||
return val;
|
||||
|
||||
return !!(val & MDIO_AN_STAT1_COMPLETE) &&
|
||||
!!(bmsr & BMSR_ANEGCOMPLETE);
|
||||
|
@ -146,7 +146,7 @@ static int bcm84881_read_status(struct phy_device *phydev)
|
|||
|
||||
bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR);
|
||||
if (bmsr < 0)
|
||||
return bmsr;
|
||||
return val;
|
||||
|
||||
phydev->autoneg_complete = !!(val & MDIO_AN_STAT1_COMPLETE) &&
|
||||
!!(bmsr & BMSR_ANEGCOMPLETE);
|
||||
|
|
Loading…
Reference in a new issue