提交 c8396d84 编写于 作者: S Sergei Shtylyov 提交者: David S. Miller

lxt: simplify lxt970_config_init()

This function declares the 'err' local variable for no good reason, get rid
of it.
Signed-off-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 04e6233d
...@@ -88,11 +88,7 @@ static int lxt970_config_intr(struct phy_device *phydev) ...@@ -88,11 +88,7 @@ static int lxt970_config_intr(struct phy_device *phydev)
static int lxt970_config_init(struct phy_device *phydev) static int lxt970_config_init(struct phy_device *phydev)
{ {
int err; return phy_write(phydev, MII_LXT970_CONFIG, 0);
err = phy_write(phydev, MII_LXT970_CONFIG, 0);
return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册