]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memory_hotplug: remove second __nr_to_section in register_page_bootmem_info_section()
authorOscar Salvador <osalvador@techadventures.net>
Thu, 1 Feb 2018 00:17:25 +0000 (16:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 01:18:37 +0000 (17:18 -0800)
commit6add7c4b423c3a61cf605860f3b4ad8697349055
tree561689e696268961e1a97b7973ccbd93f6326d15
parent95fafa73c8c0bffc68e8f712b5e7ac26d2e0fb30
mm: memory_hotplug: remove second __nr_to_section in register_page_bootmem_info_section()

In register_page_bootmem_info_section() we call __nr_to_section() in
order to get the mem_section struct at the beginning of the function.
Since we already got it, there is no need for a second call to
__nr_to_section().

Link: http://lkml.kernel.org/r/20171207102914.GA12396@techadventures.net
Signed-off-by: Oscar Salvador <osalvador@techadventures.net>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c