diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 18:36:27 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 18:36:27 +0100 |
commit | 4401d138993c652dc7463207fa3afde71b7ae509 (patch) | |
tree | be2292c0d5329f54b98f0d4acbc574774f0834c2 /drivers/md | |
parent | BUG_ON() Conversion in md/bitmap.c (diff) | |
download | linux-4401d138993c652dc7463207fa3afde71b7ae509.tar.xz linux-4401d138993c652dc7463207fa3afde71b7ae509.zip |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-hw-handler.c | 3 |
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) if (--hwhi->use == 0) module_put(hwhi->hwht.module); - if (hwhi->use < 0) - BUG(); + BUG_ON(hwhi->use < 0); out: up_read(&_hwh_lock); |