Skip to content

Commit

Permalink
net: icplus: remove unnecessary code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Dietsche authored and David S. Miller committed Jun 17, 2011
1 parent cb0a605 commit 0a3f084
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/phy/icplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a3f084

Please sign in to comment.