summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-01-22 13:44:02 +0100
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-31 04:12:06 +0100
commit509009ccfa53d031be5f5551fa2b7f9a4cbd2d93 (patch)
tree9d75d5f22c158064b3cf75656b8c893400d6eb3e /arch/riscv
parentriscv: remove unused __ARCH_HAVE_MMU define (diff)
downloadlinux-509009ccfa53d031be5f5551fa2b7f9a4cbd2d93.tar.xz
linux-509009ccfa53d031be5f5551fa2b7f9a4cbd2d93.zip
riscv: remove redundant unlikely()
IS_ERR_VALUE() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/kernel/vdso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c
index e8a178df8144..582cb153eb24 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;
}