BUG_ON() Conversion in mm/vmalloc.c

this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better 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-04-01 01:26:09 +02:00 committed by Adrian Bunk
parent e74ca2b49b
commit 5aae277ed6
1 changed files with 1 additions and 2 deletions

View File

@ -321,8 +321,7 @@ void __vunmap(void *addr, int deallocate_pages)
int i;
for (i = 0; i < area->nr_pages; i++) {
if (unlikely(!area->pages[i]))
BUG();
BUG_ON(!area->pages[i]);
__free_page(area->pages[i]);
}