Skip to content

Commit

Permalink
Merge branch 'thermal-intel'
Browse files Browse the repository at this point in the history
Merge one more Intel thermal control change for 6.2-rc1:

 - Remove a pointless die_id chec from the Intel HFI thermal control
   driver (Ricardo Neri).

* thermal-intel:
  thermal: intel: hfi: Remove a pointless die_id check
  • Loading branch information
Rafael J. Wysocki committed Dec 12, 2022
2 parents 7d4b19a + 3a3073b commit 75b15aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/intel/intel_hfi.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void intel_hfi_online(unsigned int cpu)
die_id = topology_logical_die_id(cpu);
hfi_instance = info->hfi_instance;
if (!hfi_instance) {
if (die_id < 0 || die_id >= max_hfi_instances)
if (die_id >= max_hfi_instances)
return;

hfi_instance = &hfi_instances[die_id];
Expand Down

0 comments on commit 75b15aa

Please sign in to comment.