From: Tobias Klauser Date: Mon, 22 Jan 2018 12:44:02 +0000 (+0100) Subject: riscv: remove redundant unlikely() X-Git-Tag: v4.16-rc1~45^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509009ccfa53d031be5f5551fa2b7f9a4cbd2d93;p=thirdparty%2Flinux.git riscv: remove redundant unlikely() IS_ERR_VALUE() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index e8a178df81443..582cb153eb248 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -74,7 +74,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, down_write(&mm->mmap_sem); vdso_base = get_unmapped_area(NULL, 0, vdso_len, 0, 0); - if (unlikely(IS_ERR_VALUE(vdso_base))) { + if (IS_ERR_VALUE(vdso_base)) { ret = vdso_base; goto end; }