* [PATCH] powerpc/85xx: Wrong variable returned on error
@ 2009-12-07 21:14 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2009-12-07 21:14 UTC (permalink / raw)
To: Andrew Morton, LKML, galak, avorontsov
The wrong variable was returned in the case of an error
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
arch/powerpc/platforms/85xx/mpc85xx_mds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index 3909d57..ad1609c 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
@@ -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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-07 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 21:14 [PATCH] powerpc/85xx: Wrong variable returned on error Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox