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

@ -498,8 +498,7 @@ void __init efi_enter_virtual_mode(void)
check_range_for_systab(md);
}
if (!efi.systab)
BUG();
BUG_ON(!efi.systab);
status = phys_efi_set_virtual_address_map(
memmap.desc_size * memmap.nr_map,