ixgbe: remove redundant check on ret_val
authorColin Ian King <colin.king@canonical.com>
Thu, 14 Jul 2016 11:47:09 +0000 (12:47 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 22 Jul 2016 09:04:28 +0000 (02:04 -0700)
The last check on ret_val is redundant since ret_val has not changed
since the previous check, so remove it as it is extraneous.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c

index 47afed7..63b2500 100644 (file)
@@ -1813,9 +1813,6 @@ static s32 ixgbe_start_hw_82599(struct ixgbe_hw *hw)
        /* We need to run link autotry after the driver loads */
        hw->mac.autotry_restart = true;
 
-       if (ret_val)
-               return ret_val;
-
        return ixgbe_verify_fw_version_82599(hw);
 }