Skip to contentSkip to conversation

BUG_ON() Conversion in md/dm-target.c

PATCH In review Eric Sesterhenn / snakebyte 1 participant 1 message Jan 26, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

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_ty
 	if (--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