diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-25 08:20:24 -0400 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-05-29 16:20:30 -0400 |
commit | f532beeeff0c0a3586cc15538bc52d249eb19e7c (patch) | |
tree | 0f1ea4ac0f0bb5c03d08052f8dae5af8b721fe11 /arch/mips/kernel | |
parent | e4f2d1af7163becb181419af9dece9206001e0a6 (diff) |
MIPS: uprobes: remove set but not used variable 'epc'
Fixes gcc '-Wunused-but-set-variable' warning:
arch/mips/kernel/uprobes.c: In function 'arch_uprobe_pre_xol':
arch/mips/kernel/uprobes.c:115:17: warning: variable 'epc' set but not used [-Wunused-but-set-variable]
It's never used since introduction in
commit 40e084a506eb ("MIPS: Add uprobes support.")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: <ralf@linux-mips.org>
Cc: <jhogan@kernel.org>
Cc: <linux-kernel@vger.kernel.org>
Cc: <linux-mips@vger.kernel.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/uprobes.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/mips/kernel/uprobes.c b/arch/mips/kernel/uprobes.c index 4aaff3b3175c..6dbe4eab0a0e 100644 --- a/arch/mips/kernel/uprobes.c +++ b/arch/mips/kernel/uprobes.c | |||
@@ -112,9 +112,6 @@ int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs) | |||
112 | */ | 112 | */ |
113 | aup->resume_epc = regs->cp0_epc + 4; | 113 | aup->resume_epc = regs->cp0_epc + 4; |
114 | if (insn_has_delay_slot((union mips_instruction) aup->insn[0])) { | 114 | if (insn_has_delay_slot((union mips_instruction) aup->insn[0])) { |
115 | unsigned long epc; | ||
116 | |||
117 | epc = regs->cp0_epc; | ||
118 | __compute_return_epc_for_insn(regs, | 115 | __compute_return_epc_for_insn(regs, |
119 | (union mips_instruction) aup->insn[0]); | 116 | (union mips_instruction) aup->insn[0]); |
120 | aup->resume_epc = regs->cp0_epc; | 117 | aup->resume_epc = regs->cp0_epc; |