summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-01-22 15:44:02 +0300
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-31 06:12:06 +0300
commit509009ccfa53d031be5f5551fa2b7f9a4cbd2d93 (patch)
tree9d75d5f22c158064b3cf75656b8c893400d6eb3e /arch/riscv
parent0b5030c8c0520ec310bf8ca8f16d56541e80cf5c (diff)
downloadlinux-509009ccfa53d031be5f5551fa2b7f9a4cbd2d93.tar.xz
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;
}