mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
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:
parent
e74ca2b49b
commit
5aae277ed6
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user