diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-04-02 08:24:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-04 01:02:00 +0200 |
commit | a25cc43ebb9cdf1cd9623fcdf5009e0a72288f69 (patch) | |
tree | c8b51b3e7890a6da78aa72a3114f2e6cf04f935c /drivers/net/phy/bcm63xx.c | |
parent | ppp: use for_each_set_bit_from (diff) | |
download | linux-a25cc43ebb9cdf1cd9623fcdf5009e0a72288f69.tar.xz linux-a25cc43ebb9cdf1cd9623fcdf5009e0a72288f69.zip |
net:phy:bcm63xx: remove unnecessary code
Compile tested.
remove unnecessary code that matches this coccinelle pattern
ret = phy_write(x, y , z)
if (ret < 0)
return ret;
return 0;
As phy_write returns error code, we dont need to do not need extra check
before returning.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/bcm63xx.c')
-rw-r--r-- | drivers/net/phy/bcm63xx.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/phy/bcm63xx.c b/drivers/net/phy/bcm63xx.c index e16f98cb4f04..cd802eb25fd2 100644 --- a/drivers/net/phy/bcm63xx.c +++ b/drivers/net/phy/bcm63xx.c @@ -39,10 +39,7 @@ static int bcm63xx_config_init(struct phy_device *phydev) MII_BCM63XX_IR_SPEED | MII_BCM63XX_IR_LINK) | MII_BCM63XX_IR_EN; - err = phy_write(phydev, MII_BCM63XX_IR, reg); - if (err < 0) - return err; - return 0; + return phy_write(phydev, MII_BCM63XX_IR, reg); } static int bcm63xx_ack_interrupt(struct phy_device *phydev) |