Skip to content

Commit 3a3073b

Browse files
ricardonrafaeljw
authored andcommitted
thermal: intel: hfi: Remove a pointless die_id check
die_id is an u16 quantity. On single-die systems the default value of die_id is 0. No need to check for negative values. Plus, removing this check makes Coverity happy. Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent c0e3acd commit 3a3073b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/intel/intel_hfi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ void intel_hfi_online(unsigned int cpu)
379379
die_id = topology_logical_die_id(cpu);
380380
hfi_instance = info->hfi_instance;
381381
if (!hfi_instance) {
382-
if (die_id < 0 || die_id >= max_hfi_instances)
382+
if (die_id >= max_hfi_instances)
383383
return;
384384

385385
hfi_instance = &hfi_instances[die_id];

0 commit comments

Comments
 (0)