summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/e1000e/phy.c
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2012-02-08 02:55:09 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-02-13 12:28:55 -0800
commit826072555b0dceac44a6e69a0c5be137e829c9d4 (patch)
treee4dc80d15dbad51450f802ec96029a6e9ef7d572 /drivers/net/ethernet/intel/e1000e/phy.c
parent7eb61d81946ccb61726600c6e8ceefcce9844f02 (diff)
downloadlwn-826072555b0dceac44a6e69a0c5be137e829c9d4.tar.gz
lwn-826072555b0dceac44a6e69a0c5be137e829c9d4.zip
e1000e: cleanup: always return 0
These are a few instances of returning a value that can only be 0 so just use a 'return 0' to make it more obvious. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/phy.c')
-rw-r--r--drivers/net/ethernet/intel/e1000e/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/phy.c b/drivers/net/ethernet/intel/e1000e/phy.c
index 323cb145f849..a8b99bae0222 100644
--- a/drivers/net/ethernet/intel/e1000e/phy.c
+++ b/drivers/net/ethernet/intel/e1000e/phy.c
@@ -1916,7 +1916,7 @@ s32 e1000e_get_cable_length_igp_2(struct e1000_hw *hw)
phy->cable_length = (phy->min_cable_length + phy->max_cable_length) / 2;
- return ret_val;
+ return 0;
}
/**