diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-01 01:15:35 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-01 01:15:35 +0200 |
commit | 4b4d1cc7336b29f766d4e59d1ed2c627443a694a (patch) | |
tree | d2b501084ecd78d06d56c9d7deb3f5c96c6e6a9f /fs/jffs2/background.c | |
parent | 0bf3ba538a150f8430104a50e88c1449e8fa1fe6 (diff) | |
download | op-kernel-dev-4b4d1cc7336b29f766d4e59d1ed2c627443a694a.zip op-kernel-dev-4b4d1cc7336b29f766d4e59d1ed2c627443a694a.tar.gz |
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>
Diffstat (limited to 'fs/jffs2/background.c')
-rw-r--r-- | fs/jffs2/background.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c index 7b77a95..ff2a872 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); |