lxt: simplify lxt970_config_init()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Fri, 13 May 2016 23:09:07 +0000 (02:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:53:20 +0000 (13:53 -0400)
This function declares the 'err' local variable for no good reason, get rid
of it.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/lxt.c

index 89b2c0fd69b90ae0a19499a510000f759132177c..b9fde1bcf0f0c302ed79d97c6a717d5f1ddfe7fe 100644 (file)
@@ -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);
 }