From: Hanjun Guo Date: Tue, 21 Jul 2020 09:59:06 +0000 (+0800) Subject: ACPI: NUMA: Remove the useless 'node >= MAX_NUMNODES' check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5b1e80204db6a4e05db3dfb594e8682857af1e69;p=linux.git ACPI: NUMA: Remove the useless 'node >= MAX_NUMNODES' check acpi_map_pxm_to_node() will never return a NUMA node greater than MAX_NUMNODES, so the 'node >= MAX_NUMNODES' check is not needed. Remove it. Signed-off-by: Hanjun Guo Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index 3d430b026d96f..15bbaab8500b9 100644 --- a/drivers/acpi/numa/srat.c +++ b/drivers/acpi/numa/srat.c @@ -230,7 +230,7 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma) pxm &= 0xff; node = acpi_map_pxm_to_node(pxm); - if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) { + if (node == NUMA_NO_NODE) { pr_err("SRAT: Too many proximity domains.\n"); goto out_err_bad_srat; }