mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
BUG_ON() Conversion in fs/jffs2/
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
0bf3ba538a
commit
4b4d1cc733
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue