From: Eric Sesterhenn Date: Fri, 31 Mar 2006 23:15:35 +0000 (+0200) Subject: BUG_ON() Conversion in fs/jffs2/ X-Git-Tag: v2.6.17-rc1~10^2~38 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4d1cc7336b29f766d4e59d1ed2c627443a694a;p=linux-2.6 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 Signed-off-by: Adrian Bunk --- diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c index 7b77a95411..ff2a872e80 100644 --- 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);