summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-target.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-04-01 01:08:12 +0200
committerAdrian Bunk <bunk@stusta.de>2006-04-01 01:08:12 +0200
commit543cb2a451918002238a052d5c280e6afdee1cea (patch)
tree719e73e7752bdc23a4c5820f59f03393d5b635aa /drivers/md/dm-target.c
parent58ef2c4ce3c98fe46ae159bd560b63421798ea90 (diff)
downloadlinux-543cb2a451918002238a052d5c280e6afdee1cea.tar.gz
linux-543cb2a451918002238a052d5c280e6afdee1cea.tar.bz2
linux-543cb2a451918002238a052d5c280e6afdee1cea.zip
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 <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/md/dm-target.c')
-rw-r--r--drivers/md/dm-target.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c
index aecd9e0c2616..64fd8e79ea4c 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;