diff options
Diffstat (limited to 'arch/i386/mm')
-rw-r--r-- | arch/i386/mm/discontig.c | 3 | ||||
-rw-r--r-- | arch/i386/mm/init.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/i386/mm/discontig.c b/arch/i386/mm/discontig.c index 51e3739dd227..455597db84df 100644 --- a/arch/i386/mm/discontig.c +++ b/arch/i386/mm/discontig.c | |||
@@ -153,8 +153,7 @@ static void __init find_max_pfn_node(int nid) | |||
153 | */ | 153 | */ |
154 | if (node_start_pfn[nid] > max_pfn) | 154 | if (node_start_pfn[nid] > max_pfn) |
155 | node_start_pfn[nid] = max_pfn; | 155 | node_start_pfn[nid] = max_pfn; |
156 | if (node_start_pfn[nid] > node_end_pfn[nid]) | 156 | BUG_ON(node_start_pfn[nid] > node_end_pfn[nid]); |
157 | BUG(); | ||
158 | } | 157 | } |
159 | 158 | ||
160 | /* | 159 | /* |
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c index 90089c14c23d..167416155ee4 100644 --- a/arch/i386/mm/init.c +++ b/arch/i386/mm/init.c | |||
@@ -569,8 +569,7 @@ void __init mem_init(void) | |||
569 | int bad_ppro; | 569 | int bad_ppro; |
570 | 570 | ||
571 | #ifdef CONFIG_FLATMEM | 571 | #ifdef CONFIG_FLATMEM |
572 | if (!mem_map) | 572 | BUG_ON(!mem_map); |
573 | BUG(); | ||
574 | #endif | 573 | #endif |
575 | 574 | ||
576 | bad_ppro = ppro_with_ram_bug(); | 575 | bad_ppro = ppro_with_ram_bug(); |