[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <10461460.oZtY7gCKIq@wasted.cogentembedded.com>
Date: Sat, 14 May 2016 02:09:07 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: f.fainelli@...il.com, netdev@...r.kernel.org
Subject: [PATCH 2/2] 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 <sergei.shtylyov@...entembedded.com>
---
drivers/net/phy/lxt.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
Index: net-next/drivers/net/phy/lxt.c
===================================================================
--- net-next.orig/drivers/net/phy/lxt.c
+++ net-next/drivers/net/phy/lxt.c
@@ -88,11 +88,7 @@ static int lxt970_config_intr(struct phy
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);
}
Powered by blists - more mailing lists