Skip to content

Commit

Permalink
BUG_ON() Conversion in fs/jffs2/
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 31, 2006
1 parent 0bf3ba5 commit 4b4d1cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/jffs2/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b4d1cc

Please sign in to comment.