Skip to contentSkip to conversation

igc: check return value of ret_val in igc_config_fc_after_link_up

PATCH New Kevin Lo 2 participants 2 messages Jan 7, 2021 – Jan 9, 2021

Subsystems (3)
lore
Share & tools
lore

Kevin Lo

author
#0 lore raw

PATCH 1/1 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")

---

drivers/net/ethernet/intel/igc/igc_mac.c +1 -1
index 09cd0ec7ee87..67b8ffd21d8a 100644
@@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)
 	}
 
 out:
-	return 0;
+	return ret_val;
 }
 
 /**
#1 lore raw

PATCH 1/1 igc: check return value of ret_val in igc_config_fc_after_link_up

Quoted 18 lines · Kevin Lo

Check return value from ret_val to make error check actually work.

Fixes 4eb8080143a9 ("igc: Add setup link functionality")

---

drivers/net/ethernet/intel/igc/igc_mac.c +1 -1
index 09cd0ec7ee87..67b8ffd21d8a 100644
@@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)
  	}
 
  out:
-	return 0;
+	return ret_val;
  }
 
  /**
Quoted 5 lines

_______________________________________________
Intel-wired-lan mailing list
Intel-wired-lan at osuosl.org
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

Thanks for your patch.