Skip to content

Commit 5b1e802

Browse files
guohanjunrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 1c60f91 commit 5b1e802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/numa/srat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma)
230230
pxm &= 0xff;
231231

232232
node = acpi_map_pxm_to_node(pxm);
233-
if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) {
233+
if (node == NUMA_NO_NODE) {
234234
pr_err("SRAT: Too many proximity domains.\n");
235235
goto out_err_bad_srat;
236236
}

0 commit comments

Comments
 (0)