[PATCH] mm: memory_hotplug: Remove unnecesary check from register_page_bootmem_info_section()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When we call register_page_bootmem_info_section() having CONFIG_SPARSEMEM_VMEMMAP enabled,
we check if the pfn is valid.
This check is redundant as we already checked this in register_page_bootmem_info_node()
before calling register_page_bootmem_info_section(), so let's get rid of it.

Signed-off-by: Oscar Salvador <osalvador@xxxxxxxxxxxxxxxxxx>
---
 mm/memory_hotplug.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index d0856ab2f28d..7452a53b027f 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -200,9 +200,6 @@ static void register_page_bootmem_info_section(unsigned long start_pfn)
 	struct mem_section *ms;
 	struct page *page, *memmap;
 
-	if (!pfn_valid(start_pfn))
-		return;
-
 	section_nr = pfn_to_section_nr(start_pfn);
 	ms = __nr_to_section(section_nr);
 
-- 
2.13.5

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux