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
@ -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,
|
||||
|
Reference in New Issue
Block a user