Revert "arm64: acpi: Harden get_cpu_for_acpi_id() against missing CPU entry"

This reverts commit c71f1763b9.
This commit is contained in:
Ksawlii 2024-11-24 00:23:36 +01:00
parent 4063b09e58
commit c016244326

View file

@ -102,8 +102,7 @@ static inline int get_cpu_for_acpi_id(u32 uid)
int cpu;
for (cpu = 0; cpu < nr_cpu_ids; cpu++)
if (acpi_cpu_get_madt_gicc(cpu) &&
uid == get_acpi_id_for_cpu(cpu))
if (uid == get_acpi_id_for_cpu(cpu))
return cpu;
return -EINVAL;