ACPI: NUMA: Remove unnecessary check in acpi_parse_gi_affinity()
authorYuntao Wang <ytcoode@gmail.com>
Wed, 6 Dec 2023 10:43:16 +0000 (18:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Dec 2023 19:36:18 +0000 (20:36 +0100)
commit9ecc3b38abebd18998af40f42029ba84f3f4311c
tree9000e9f7c2271d1c0e5e84708aacdb38fa9db084
parenta39b6ac3781d46ba18193c9dbb2110f31e9bffe9
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>
drivers/acpi/numa/srat.c