From: Eric Sesterhenn Date: Fri, 31 Mar 2006 23:08:12 +0000 (+0200) Subject: BUG_ON() Conversion in md/dm-target.c X-Git-Tag: v2.6.17-rc1~10^2~43 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543cb2a451918002238a052d5c280e6afdee1cea;p=linux-2.6 BUG_ON() Conversion in md/dm-target.c this changes if() BUG(); constructs to BUG_ON() which is cleaner and can better optimized away Signed-off-by: Eric Sesterhenn Signed-off-by: Adrian Bunk --- diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c index aecd9e0c26..64fd8e79ea 100644 --- a/drivers/md/dm-target.c +++ b/drivers/md/dm-target.c @@ -78,8 +78,7 @@ void dm_put_target_type(struct target_type *t) if (--ti->use == 0) module_put(ti->tt.module); - if (ti->use < 0) - BUG(); + BUG_ON(ti->use < 0); up_read(&_lock); return;