Commit 4401d138993c652dc7463207fa3afde71b7ae509

Authored by Eric Sesterhenn
Committed by Adrian Bunk
1 parent 5daf2cf19a

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/md/dm-hw-handler.c
... ... @@ -83,8 +83,7 @@
83 83 if (--hwhi->use == 0)
84 84 module_put(hwhi->hwht.module);
85 85  
86   - if (hwhi->use < 0)
87   - BUG();
  86 + BUG_ON(hwhi->use < 0);
88 87  
89 88 out:
90 89 up_read(&_hwh_lock);