We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dae9f1 commit 9234a25Copy full SHA for 9234a25
drivers/net/phy/bcm84881.c
@@ -132,7 +132,7 @@ static int bcm84881_aneg_done(struct phy_device *phydev)
132
133
bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR);
134
if (bmsr < 0)
135
- return val;
+ return bmsr;
136
137
return !!(val & MDIO_AN_STAT1_COMPLETE) &&
138
!!(bmsr & BMSR_ANEGCOMPLETE);
@@ -158,7 +158,7 @@ static int bcm84881_read_status(struct phy_device *phydev)
158
159
160
161
162
163
phydev->autoneg_complete = !!(val & MDIO_AN_STAT1_COMPLETE) &&
164
0 commit comments