aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-hw-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-hw-handler.c')
-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 4cc0010e015..baafaaba4d4 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)
if (--hwhi->use == 0)
module_put(hwhi->hwht.module);
- if (hwhi->use < 0)
- BUG();
+ BUG_ON(hwhi->use < 0);
out:
up_read(&_hwh_lock);