]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: numa: Don't check node against MAX_NUMNODES
authorGavin Shan <gshan@redhat.com>
Mon, 18 Jul 2022 06:42:32 +0000 (14:42 +0800)
committerWill Deacon <will@kernel.org>
Tue, 19 Jul 2022 18:10:28 +0000 (19:10 +0100)
commite9853a86899eeb97320f27d25c774254a386c635
tree1524926b04aec9b541da81d36b127653ec274b27
parent67ca2911d63a5cdf8e85fd438dd54e7c20b6a988
arm64: numa: Don't check node against MAX_NUMNODES

When the NUMA nodes are sorted by checking ACPI SRAT (GICC AFFINITY)
sub-table, it's impossible for acpi_map_pxm_to_node() to return
any value, which is greater than or equal to MAX_NUMNODES. Lets drop
the unnecessary check in acpi_numa_gicc_affinity_init().

No functional change intended.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/20220718064232.3464373-1-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/acpi_numa.c