From: Sergei Shtylyov Date: Fri, 13 May 2016 23:09:07 +0000 (+0300) Subject: lxt: simplify lxt970_config_init() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8396d84c70b47b31b5a9e34732e88bcc7dae9e9;p=linux-beck.git lxt: simplify lxt970_config_init() This function declares the 'err' local variable for no good reason, get rid of it. Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c index 89b2c0fd69b9..b9fde1bcf0f0 100644 --- a/drivers/net/phy/lxt.c +++ b/drivers/net/phy/lxt.c @@ -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); }