diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-03-24 18:38:48 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-03-24 18:38:48 +0100 |
commit | 88bcd51262ed45212d1b3a65abbac46eaf36bfeb (patch) | |
tree | 570fba807f94845399c12284d1c2f6568e4b016b /fs/binfmt_elf_fdpic.c | |
parent | BUG_ON() Conversion in input/serio/hil_mlc.c (diff) | |
download | linux-88bcd51262ed45212d1b3a65abbac46eaf36bfeb.tar.xz 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.c | 3 |
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 |