Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Sesterhenn and committed by
Adrian Bunk
4401d138 5daf2cf1

+1 -2
+1 -2
drivers/md/dm-hw-handler.c
··· 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);