mirror of
https://github.com/torvalds/linux.git
synced 2024-12-17 16:43:08 +00:00
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>
This commit is contained in:
parent
a39b6ac378
commit
9ecc3b38ab
@ -430,7 +430,7 @@ acpi_parse_gi_affinity(union acpi_subtable_headers *header,
|
||||
return -EINVAL;
|
||||
|
||||
node = acpi_map_pxm_to_node(gi_affinity->proximity_domain);
|
||||
if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) {
|
||||
if (node == NUMA_NO_NODE) {
|
||||
pr_err("SRAT: Too many proximity domains.\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user