BUG_ON() Conversion in md/bitmap.c
PATCH 1/9 BUG_ON() Conversion in md/bitmap.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/bitmap.c renamed from drivers/md/bitmap.c.orig +1 -1
@@ -1309,7 +1309,7 @@ int bitmap_startwrite(struct bitmap *bitcase 1 : *bmc =2 ; } -if ((*bmc &COUNTER_MAX ) ==COUNTER_MAX )BUG (); +BUG_ON ((*bmc &COUNTER_MAX ) ==COUNTER_MAX ); (*bmc)++;spin_unlock_irq (&bitmap->lock);
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors