summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf_fdpic.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-24 18:38:48 +0100
committerAdrian Bunk <bunk@stusta.de>2006-03-24 18:38:48 +0100
commit88bcd51262ed45212d1b3a65abbac46eaf36bfeb (patch)
tree570fba807f94845399c12284d1c2f6568e4b016b /fs/binfmt_elf_fdpic.c
parentb1eecf7e04f34e3248ca8d14e49156da63f05117 (diff)
downloadlinux-88bcd51262ed45212d1b3a65abbac46eaf36bfeb.tar.gz
linux-88bcd51262ed45212d1b3a65abbac46eaf36bfeb.tar.bz2
linux-88bcd51262ed45212d1b3a65abbac46eaf36bfeb.zip
BUG_ON() Conversion in fs/binfmt_elf_fdpic.c
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>
Diffstat (limited to 'fs/binfmt_elf_fdpic.c')
-rw-r--r--fs/binfmt_elf_fdpic.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 5b3076e8ee90..a2e48c999c24 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -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