From: Eric Sesterhenn Date: Fri, 31 Mar 2006 23:26:09 +0000 (+0200) Subject: BUG_ON() Conversion in mm/vmalloc.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5aae277ed67b0271235d3a50908bb48b0e59be26;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Adrian Bunk --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 729eb3eec75f..c0504f1e34eb 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -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]); }