From: Eric Sesterhenn Date: Fri, 24 Mar 2006 17:38:48 +0000 (+0100) Subject: BUG_ON() Conversion in fs/binfmt_elf_fdpic.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88bcd51262ed45212d1b3a65abbac46eaf36bfeb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Adrian Bunk --- 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