Skip to content

Commit 9ecc3b3

Browse files
ytcooderafaeljw
authored andcommitted
ACPI: NUMA: Remove unnecessary check in acpi_parse_gi_affinity()
The acpi_map_pxm_to_node() function will never return a node value that is greater than or equal to MAX_NUMNODES. Remove the unnecessary `node >= MAX_NUMNODES` check to keep the code consistent with other users of the acpi_map_pxm_to_node() function. Signed-off-by: Yuntao Wang <ytcoode@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent a39b6ac commit 9ecc3b3

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
@@ -430,7 +430,7 @@ acpi_parse_gi_affinity(union acpi_subtable_headers *header,
430430
return -EINVAL;
431431

432432
node = acpi_map_pxm_to_node(gi_affinity->proximity_domain);
433-
if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) {
433+
if (node == NUMA_NO_NODE) {
434434
pr_err("SRAT: Too many proximity domains.\n");
435435
return -EINVAL;
436436
}

0 commit comments

Comments
 (0)