提交 29827b02 编写于 作者: R Roel Kluin 提交者: Benjamin Herrenschmidt

powerpc/85xx: Wrong variable returned on error

The wrong variable was returned in the case of an error.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 5c916a29
...@@ -86,7 +86,7 @@ static int mpc8568_fixup_125_clock(struct phy_device *phydev) ...@@ -86,7 +86,7 @@ static int mpc8568_fixup_125_clock(struct phy_device *phydev)
scr = phy_read(phydev, MV88E1111_SCR); scr = phy_read(phydev, MV88E1111_SCR);
if (scr < 0) if (scr < 0)
return err; return scr;
err = phy_write(phydev, MV88E1111_SCR, scr | 0x0008); err = phy_write(phydev, MV88E1111_SCR, scr | 0x0008);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册