Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8396d84 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by David S. Miller
Browse files

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
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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);
}