[PATCH] x86-64: Remove redundant max_mapnr and replace with end_pfn
[pandora-kernel.git] / arch / x86_64 / mm / init.c
index 5659d97..b6a826d 100644 (file)
@@ -411,11 +411,6 @@ void __init mem_init(void)
 #ifdef CONFIG_NUMA
        totalram_pages = numa_free_all_bootmem();
 #else
 #ifdef CONFIG_NUMA
        totalram_pages = numa_free_all_bootmem();
 #else
-
-#ifdef CONFIG_FLATMEM
-       max_mapnr = end_pfn;
-       if (!mem_map) BUG();
-#endif
        totalram_pages = free_all_bootmem();
 #endif
        reservedpages = end_pfn - totalram_pages - e820_hole_size(0, end_pfn);
        totalram_pages = free_all_bootmem();
 #endif
        reservedpages = end_pfn - totalram_pages - e820_hole_size(0, end_pfn);