Skip to content

Commit

Permalink
igc: check return value of ret_val in igc_config_fc_after_link_up
Browse files Browse the repository at this point in the history
Check return value from ret_val to make error check actually work.

Fixes: 4eb8080 ("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>
  • Loading branch information
kevlo authored and anguy11 committed Feb 1, 2021
1 parent ebc8d12 commit b881145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/igc/igc_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)
}

out:
return 0;
return ret_val;
}

/**
Expand Down

0 comments on commit b881145

Please sign in to comment.