Skip to content

Commit b881145

Browse files
kevloanguy11
authored andcommitted
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: 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>
1 parent ebc8d12 commit b881145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/intel/igc/igc_mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)
638638
}
639639

640640
out:
641-
return 0;
641+
return ret_val;
642642
}
643643

644644
/**

0 commit comments

Comments
 (0)