diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-06-16 03:04:30 -0400 |
---|---|---|
committer | David S. Miller <davem@conan.davemloft.net> | 2011-06-17 00:03:04 -0400 |
commit | 0a3f084179731f6755462aa7fec677f8e1f0580a (patch) | |
tree | 4790f15ccc0596ec815895b23734510cabd140d5 /drivers/net/phy | |
parent | cb0a60564943db21ed3af975ac3d578cdc80b329 (diff) |
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 <Gregory.Dietsche@cuw.edu>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/icplus.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index 9a09e24c30bc..d4cbc2922b23 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) | |||
109 | value = phy_read(phydev, 16); | 109 | value = phy_read(phydev, 16); |
110 | value |= 0x3; | 110 | value |= 0x3; |
111 | 111 | ||
112 | err = phy_write(phydev, 16, value); | 112 | return phy_write(phydev, 16, value); |
113 | if (err < 0) | ||
114 | return err; | ||
115 | |||
116 | return err; | ||
117 | } | 113 | } |
118 | 114 | ||
119 | static int ip175c_read_status(struct phy_device *phydev) | 115 | static int ip175c_read_status(struct phy_device *phydev) |