aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-24 12:36:27 -0500
committerAdrian Bunk <bunk@stusta.de>2006-03-24 12:36:27 -0500
commit4401d138993c652dc7463207fa3afde71b7ae509 (patch)
treebe2292c0d5329f54b98f0d4acbc574774f0834c2
parent5daf2cf19a7d03843d8d2d1b4aaf5260479cc5a7 (diff)
BUG_ON() Conversion in md/dm-hw-handler.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>
-rw-r--r--drivers/md/dm-hw-handler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-hw-handler.c b/drivers/md/dm-hw-handler.c
index 4cc0010e0156..baafaaba4d4b 100644
--- a/drivers/md/dm-hw-handler.c
+++ b/drivers/md/dm-hw-handler.c
@@ -83,8 +83,7 @@ void dm_put_hw_handler(struct hw_handler_type *hwht)
83 if (--hwhi->use == 0) 83 if (--hwhi->use == 0)
84 module_put(hwhi->hwht.module); 84 module_put(hwhi->hwht.module);
85 85
86 if (hwhi->use < 0) 86 BUG_ON(hwhi->use < 0);
87 BUG();
88 87
89 out: 88 out:
90 up_read(&_hwh_lock); 89 up_read(&_hwh_lock);