net: icplus: remove unnecessary code
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>
Thu, 16 Jun 2011 07:04:30 +0000 (07:04 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Fri, 17 Jun 2011 04:03:04 +0000 (00:03 -0400)
Compile tested.
remove unnecessary code that matches this coccinelle pattern
if (...)
return ret;
return ret;

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/phy/icplus.c

index 9a09e24c30bc2e222974b481f76d219ed6a22cd6..d4cbc2922b23e957cfa801d6b1a7471378828798 100644 (file)
@@ -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)