aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-12-12 16:54:14 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-12-12 16:54:14 +0100
commit75b15aa0d83ec835082129b62e8cb9a44703ad72 (patch)
tree1ba3ea24b2688f144459d43e506457bbc9bad087
parent7d4b19ab6b89903fde8ad02f28a8943a4734e7b0 (diff)
parent3a3073b69c76a8909374c5f9d610ea2f02ba3402 (diff)
Merge branch 'thermal-intel'thermal-6.2-rc1
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
-rw-r--r--drivers/thermal/intel/intel_hfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/intel/intel_hfi.c b/drivers/thermal/intel/intel_hfi.c
index 90a11eef44f7..6e604bda2b93 100644
--- a/drivers/thermal/intel/intel_hfi.c
+++ b/drivers/thermal/intel/intel_hfi.c
@@ -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];