]> err.no Git - linux-2.6/commitdiff
BUG_ON() Conversion in fs/binfmt_elf_fdpic.c
authorEric Sesterhenn <snakebyte@gmx.de>
Fri, 24 Mar 2006 17:38:48 +0000 (18:38 +0100)
committerAdrian Bunk <bunk@stusta.de>
Fri, 24 Mar 2006 17:38:48 +0000 (18:38 +0100)
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>
fs/binfmt_elf_fdpic.c

index 5b3076e8ee906a62d16be19588779a125cba4a86..a2e48c999c24b6e9b9759eb755fe05f92ef9bfd3 100644 (file)
@@ -572,8 +572,7 @@ static int create_elf_fdpic_tables(struct linux_binprm *bprm,
        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