Skip to contentSkip to conversation

powerpc/85xx: Wrong variable returned on error

PATCH New Roel Kluin 1 participant 1 message Dec 7, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 powerpc/85xx: Wrong variable returned on error

The wrong variable was returned in the case of an error

---
 arch/powerpc/platforms/85xx/mpc85xx_mds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/85xx/mpc85xx_mds.c +1 -1
index 3909d57..ad1609c 100644
@@ -86,7 +86,7 @@ static int mpc8568_fixup_125_clock(struct phy_device *phydev)
 	scr = phy_read(phydev, MV88E1111_SCR);
 
 	if (scr < 0)
-		return err;
+		return scr;
 
 	err = phy_write(phydev, MV88E1111_SCR, scr | 0x0008);