diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2012-02-08 03:55:09 +0100 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-02-13 21:28:55 +0100 |
commit | 826072555b0dceac44a6e69a0c5be137e829c9d4 (patch) | |
tree | e4dc80d15dbad51450f802ec96029a6e9ef7d572 /drivers/net/ethernet/intel/e1000e/mac.c | |
parent | e1000e: cleanup: remove unnecessary assignments just before returning (diff) | |
download | linux-826072555b0dceac44a6e69a0c5be137e829c9d4.tar.xz linux-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/mac.c')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/mac.c b/drivers/net/ethernet/intel/e1000e/mac.c index ce8a55a584be..b3b2f9e567ff 100644 --- a/drivers/net/ethernet/intel/e1000e/mac.c +++ b/drivers/net/ethernet/intel/e1000e/mac.c @@ -444,7 +444,7 @@ s32 e1000e_check_for_copper_link(struct e1000_hw *hw) return ret_val; if (!link) - return ret_val; /* No link detected */ + return 0; /* No link detected */ mac->get_link_status = false; |