diff options
author | Kevin Lo <kevlo@kevlo.org> | 2021-01-07 14:10:38 +0800 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-02-01 10:04:43 -0800 |
commit | b881145642ce0bbe2be521e0882e72a5cebe93b8 (patch) | |
tree | 97404ece0fa2cf05ade4b637ad9ffe0d1c4d9f8a /drivers | |
parent | ebc8d125062e7dccb7922b2190b097c20d88ad96 (diff) | |
download | linux-b881145642ce0bbe2be521e0882e72a5cebe93b8.tar.bz2 |
igc: check return value of ret_val in igc_config_fc_after_link_up
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/intel/igc/igc_mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_mac.c b/drivers/net/ethernet/intel/igc/igc_mac.c index 09cd0ec7ee87..67b8ffd21d8a 100644 --- a/drivers/net/ethernet/intel/igc/igc_mac.c +++ b/drivers/net/ethernet/intel/igc/igc_mac.c @@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw) } out: - return 0; + return ret_val; } /** |