diff options
author | Hanjun Guo <guohanjun@huawei.com> | 2020-07-21 17:59:06 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-07-27 15:19:12 +0200 |
commit | 5b1e80204db6a4e05db3dfb594e8682857af1e69 (patch) | |
tree | 3e8cfa3133a6a866ab25cd31bab6bc82896dc378 /drivers/acpi/numa | |
parent | 1c60f91c319d55058da3a0f6a361b6e6ee6b8c58 (diff) | |
download | linux-5b1e80204db6a4e05db3dfb594e8682857af1e69.tar.gz linux-5b1e80204db6a4e05db3dfb594e8682857af1e69.tar.bz2 linux-5b1e80204db6a4e05db3dfb594e8682857af1e69.zip |
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 <guohanjun@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/numa')
-rw-r--r-- | drivers/acpi/numa/srat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/numa/srat.c b/drivers/acpi/numa/srat.c index 3d430b026d96..15bbaab8500b 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; } |