igc: check return value of ret_val in igc_config_fc_after_link_up
authorKevin Lo <kevlo@kevlo.org>
Thu, 7 Jan 2021 06:10:38 +0000 (14:10 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 1 Feb 2021 18:04:43 +0000 (10:04 -0800)
Check return value from ret_val to make error check actually work.

Fixes: 4eb8080143a9 ("igc: Add setup link functionality")
Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_mac.c

index 09cd0ec7ee87d8231acef20d6c9a468177057c69..67b8ffd21d8af39d543605ba98a9b70cf06051c4 100644 (file)
@@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)
        }
 
 out:
-       return 0;
+       return ret_val;
 }
 
 /**