diff options
author | Jianguo Wu <wujianguo@huawei.com> | 2013-08-30 09:25:40 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-24 01:40:38 +0200 |
commit | 1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5 (patch) | |
tree | 1a4677685754ff7f3350aaaeb644613098a7905b /drivers/acpi/acpi_memhotplug.c | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 (diff) | |
download | linux-1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5.tar.gz linux-1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5.tar.bz2 linux-1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5.zip |
ACPI / mm: use NUMA_NO_NODE
Use more appropriate NUMA_NO_NODE instead of -1
Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 999adb5499c7..c00a3a73409b 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c @@ -281,7 +281,7 @@ static void acpi_memory_remove_memory(struct acpi_memory_device *mem_device) if (!info->enabled) continue; - if (nid < 0) + if (nid == NUMA_NO_NODE) nid = memory_add_physaddr_to_nid(info->start_addr); acpi_unbind_memory_blocks(info, handle); |