From: Greg Dietsche Date: Thu, 16 Jun 2011 07:04:30 +0000 (+0000) Subject: net: icplus: remove unnecessary code X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0a3f084179731f6755462aa7fec677f8e1f0580a;p=~shefty%2Frdma-dev.git net: icplus: remove unnecessary code Compile tested. remove unnecessary code that matches this coccinelle pattern if (...) return ret; return ret; Signed-off-by: Greg Dietsche Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index 9a09e24c30b..d4cbc2922b2 100644 --- a/drivers/net/phy/icplus.c +++ b/drivers/net/phy/icplus.c @@ -109,11 +109,7 @@ static int ip1001_config_init(struct phy_device *phydev) value = phy_read(phydev, 16); value |= 0x3; - err = phy_write(phydev, 16, value); - if (err < 0) - return err; - - return err; + return phy_write(phydev, 16, value); } static int ip175c_read_status(struct phy_device *phydev)