BUG_ON() Conversion in md/dm-target.c
Subsystems (2)
PATCH 5/9 BUG_ON() Conversion in md/dm-target.c
hi,
this changes if() BUG(); constructs to BUG_ON() which is cleaner and can better optimized away
Signed-off-by Eric Sesterhenn <[email protected]>
drivers/md/dm-target.c renamed from drivers/md/dm-target.c.orig +1 -2
@@ -78,8 +78,7 @@ void dm_put_target_type(struct target_tyif (--ti->use ==0 )module_put (ti->tt.module); -if (ti->use <0 ) -BUG (); +BUG_ON (ti->use <0 );up_read (&_lock);return ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors