numa_memblks_init() returns 0 only if numa_nodes_parsed is not empty, so the nodes_empty() check after the call in numa_init() is always false. So remove the check. No functional change. Signed-off-by: Sang-Heon Jeon --- mm/arch_numa.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mm/arch_numa.c b/mm/arch_numa.c index a4b1732274fa..60218d422118 100644 --- a/mm/arch_numa.c +++ b/mm/arch_numa.c @@ -244,12 +244,6 @@ static int __init numa_init(int (*init_func)(void)) if (ret < 0) goto out_free_distance; - if (nodes_empty(numa_nodes_parsed)) { - pr_info("No NUMA configuration found\n"); - ret = -EINVAL; - goto out_free_distance; - } - ret = numa_register_nodes(); if (ret < 0) goto out_free_distance; base-commit: 5728d3523f12826a2b180c1c5738f74e33197e14 -- 2.43.0