Commit c8396d84 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by 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: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 04e6233d
......@@ -88,11 +88,7 @@ static int lxt970_config_intr(struct phy_device *phydev)
static int lxt970_config_init(struct phy_device *phydev)
{
int err;
err = phy_write(phydev, MII_LXT970_CONFIG, 0);
return err;
return phy_write(phydev, MII_LXT970_CONFIG, 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment