diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2016-05-14 02:09:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-16 13:53:20 -0400 |
commit | c8396d84c70b47b31b5a9e34732e88bcc7dae9e9 (patch) | |
tree | fd4a2312fd89e8adcbc4c4ef581dc4993c5c74c1 /drivers/net/phy/lxt.c | |
parent | 04e6233d57a9e68e97c248f97d1aa2cb354f3947 (diff) | |
download | blackbird-obmc-linux-c8396d84c70b47b31b5a9e34732e88bcc7dae9e9.tar.gz blackbird-obmc-linux-c8396d84c70b47b31b5a9e34732e88bcc7dae9e9.zip |
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@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/lxt.c')
-rw-r--r-- | drivers/net/phy/lxt.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); } |