Skip to contentSkip to conversation

BUG_ON() Conversion in fs/binfmt_elf_fdpic.c

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

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

PATCH 1/8 BUG_ON() Conversion in fs/binfmt_elf_fdpic.c

hi,

this changes if() BUG(); constructs to BUG_ON() which is cleaner and can better optimized away

fs/binfmt_elf_fdpic.c renamed from fs/binfmt_elf_fdpic.c.orig +1 -2
@@ -572,8 +572,7 @@ static int create_elf_fdpic_tables(struc
 	csp -= sizeof(unsigned long);
 	__put_user(bprm->argc, (unsigned long *) csp);
 
-	if (csp != sp)
-		BUG();
+	BUG_ON(csp != sp);
 
 	/* fill in the argv[] array */
 #ifdef CONFIG_MMU

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors