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:
committed by
Adrian Bunk
parent
644c12d7f6
commit
8d8f3cbe77
@@ -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();
|
||||
|
Reference in New Issue
Block a user