summaryrefslogtreecommitdiff
path: root/arch/loongarch/include
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2022-06-18 11:39:11 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2022-06-25 13:06:07 +0300
commitea18d434781105ce61ff3ef7f74c9e51812f0580 (patch)
treeebc21baf6f760938a69d08f1b38edc5dc5cfb418 /arch/loongarch/include
parentad82eef3cebf8cd4f67e20b902e6d02e679e2ef1 (diff)
downloadlinux-ea18d434781105ce61ff3ef7f74c9e51812f0580.tar.xz
LoongArch: Make compute_return_era() return void
compute_return_era() always returns 0, make it return void, and then no need to check its return value for its callers. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include')
-rw-r--r--arch/loongarch/include/asm/branch.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/loongarch/include/asm/branch.h b/arch/loongarch/include/asm/branch.h
index 3f33c89f35b4..9a133e4c068e 100644
--- a/arch/loongarch/include/asm/branch.h
+++ b/arch/loongarch/include/asm/branch.h
@@ -12,10 +12,9 @@ static inline unsigned long exception_era(struct pt_regs *regs)
return regs->csr_era;
}
-static inline int compute_return_era(struct pt_regs *regs)
+static inline void compute_return_era(struct pt_regs *regs)
{
regs->csr_era += 4;
- return 0;
}
#endif /* _ASM_BRANCH_H */