commit | 8d8f3cbe777e014123bfa63f2cebd6eb29032225 | [log] [tgz] |
---|---|---|
author | Eric Sesterhenn <snakebyte@gmx.de> | Tue Oct 03 23:34:58 2006 +0200 |
committer | Adrian Bunk <bunk@stusta.de> | Tue Oct 03 23:34:58 2006 +0200 |
tree | 5ca6abfa5e696d3c792050221c4f7326d676d23f | |
parent | 644c12d7f695c0a30662ac781b0f06f79d7f9bab [diff] [blame] |
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>
diff --git a/arch/i386/mm/init.c b/arch/i386/mm/init.c index 90089c1..1674161 100644 --- a/arch/i386/mm/init.c +++ b/arch/i386/mm/init.c
@@ -569,8 +569,7 @@ int bad_ppro; #ifdef CONFIG_FLATMEM - if (!mem_map) - BUG(); + BUG_ON(!mem_map); #endif bad_ppro = ppro_with_ram_bug();