]> Git Repo - linux.git/commit - mm/memory_hotplug.c
mm: memory_hotplug: remove second __nr_to_section in register_page_bootmem_info_section()
authorOscar Salvador <[email protected]>
Thu, 1 Feb 2018 00:17:25 +0000 (16:17 -0800)
committerLinus Torvalds <[email protected]>
Thu, 1 Feb 2018 01:18:37 +0000 (17:18 -0800)
commit9ac9322d7cfa35b5381a08c7eaed56eb2297377e
tree561689e696268961e1a97b7973ccbd93f6326d15
parent8526d84f81710c77ead9a7bfe82b66a241f1aed1
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/[email protected]
Signed-off-by: Oscar Salvador <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory_hotplug.c
This page took 0.045138 seconds and 4 git commands to generate.