Since commit a9bafc1832d2 ("mm: numa_memblks: remove redundant numa_nodemask_from_meminfo()"), the copy of numa_nodes_parsed in numa_alloc_distance() is the same as numa_nodes_parsed. So remove the copy and use numa_nodes_parsed directly. No functional change. Signed-off-by: Sang-Heon Jeon --- mm/numa_memblks.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/numa_memblks.c b/mm/numa_memblks.c index be6e7346f6c7..1ea6871c0eb5 100644 --- a/mm/numa_memblks.c +++ b/mm/numa_memblks.c @@ -36,14 +36,11 @@ void __init numa_reset_distance(void) static int __init numa_alloc_distance(void) { - nodemask_t nodes_parsed; size_t size; int i, j, cnt = 0; /* size the new table and allocate it */ - nodes_parsed = numa_nodes_parsed; - - for_each_node_mask(i, nodes_parsed) + for_each_node_mask(i, numa_nodes_parsed) cnt = i; cnt++; size = cnt * cnt * sizeof(numa_distance[0]); base-commit: 5728d3523f12826a2b180c1c5738f74e33197e14 -- 2.43.0