projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74ca2b
)
BUG_ON() Conversion in mm/vmalloc.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Fri, 31 Mar 2006 23:26:09 +0000
(
01:26
+0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 31 Mar 2006 23:26:09 +0000
(
01:26
+0200)
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>
mm/vmalloc.c
patch
|
blob
|
history
diff --git
a/mm/vmalloc.c
b/mm/vmalloc.c
index
729eb3e
..
c0504f1
100644
(file)
--- 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]);
}