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-target.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
543cb2a4 58ef2c4c

+1 -2
+1 -2
drivers/md/dm-target.c
··· 78 78 if (--ti->use == 0) 79 79 module_put(ti->tt.module); 80 80 81 - if (ti->use < 0) 82 - BUG(); 81 + BUG_ON(ti->use < 0); 83 82 up_read(&_lock); 84 83 85 84 return;