Skip to content

Commit

Permalink
powerpc/85xx: Wrong variable returned on error
Browse files Browse the repository at this point in the history
The wrong variable was returned in the case of an error.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Roel Kluin authored and Benjamin Herrenschmidt committed Dec 18, 2009
1 parent 5c916a2 commit 29827b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/85xx/mpc85xx_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 29827b0

Please sign in to comment.