riscv: remove redundant unlikely()
"Linux Kernel Mailing List" <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/509009ccfa53d031be5f5551fa2b7f9a4cbd2d93 Commit: 509009ccfa53d031be5f5551fa2b7f9a4cbd2d93 Parent: 0b5030c8c0520ec310bf8ca8f16d56541e80cf5c Refname: refs/heads/master Author: Tobias Klauser <[email protected]> AuthorDate: Mon Jan 22 13:44:02 2018 +0100 Committer: Palmer Dabbelt <[email protected]> CommitDate: Tue Jan 30 19:12:06 2018 -0800 riscv: remove redundant unlikely() IS_ERR_VALUE() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]> --- arch/riscv/kernel/vdso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html