diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-01 01:26:09 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-01 01:26:09 +0200 |
commit | 5aae277ed67b0271235d3a50908bb48b0e59be26 (patch) | |
tree | b800b163796522788c9c0bc9c8682c5b8c790455 /mm/vmalloc.c | |
parent | e74ca2b49b8a38e9ba0bc039a00498c21140f1d6 (diff) | |
download | linux-5aae277ed67b0271235d3a50908bb48b0e59be26.tar.gz linux-5aae277ed67b0271235d3a50908bb48b0e59be26.tar.bz2 linux-5aae277ed67b0271235d3a50908bb48b0e59be26.zip |
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>
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
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]); } |