projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bf3ba5
)
BUG_ON() Conversion in fs/jffs2/
author
Eric Sesterhenn
<snakebyte@gmx.de>
Fri, 31 Mar 2006 23:15:35 +0000
(
01:15
+0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 31 Mar 2006 23:15:35 +0000
(
01:15
+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>
fs/jffs2/background.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/jffs2/background.c
b/fs/jffs2/background.c
index 7b77a9541125b7b62aa01d0cf3961f45cb1ca47c..ff2a872e80e78677de43baaf8acc758299106ec0 100644
(file)
--- a/
fs/jffs2/background.c
+++ b/
fs/jffs2/background.c
@@
-35,8
+35,7
@@
int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c)
pid_t pid;
int ret = 0;
- if (c->gc_task)
- BUG();
+ BUG_ON(c->gc_task);
init_completion(&c->gc_thread_start);
init_completion(&c->gc_thread_exit);