BUG_ON cleanups in arch/i386

This changes a couple of if() BUG(); constructs to
BUG_ON(); so it can be safely optimized away.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
Eric Sesterhenn
2006-10-03 23:34:58 +02:00
committed by Adrian Bunk
parent 644c12d7f6
commit 8d8f3cbe77
4 changed files with 4 additions and 8 deletions

View File

@@ -569,8 +569,7 @@ void __init mem_init(void)
int bad_ppro;
#ifdef CONFIG_FLATMEM
if (!mem_map)
BUG();
BUG_ON(!mem_map);
#endif
bad_ppro = ppro_with_ram_bug();