From b798068d51ecf173702c91617793989ab843c8fb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 7 May 2011 22:49:33 +0200 Subject: target-lm32: Remove unused local variables cppcheck report: target-lm32/translate.c:587: style: Variable 't0' is assigned a value that is never used target-lm32/translate.c:588: style: Variable 'l1' is assigned a value that is never used Remove both variables. Please check whether that is the correct solution. Cc: Michael Walle Cc: Edgar E. Iglesias Signed-off-by: Stefan Weil Acked-by: Michael Walle Signed-off-by: Aurelien Jarno --- target-lm32/translate.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'target-lm32/translate.c') diff --git a/target-lm32/translate.c b/target-lm32/translate.c index bcd52fe73d..eb2115814c 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -584,9 +584,6 @@ static void dec_orhi(DisasContext *dc) static void dec_scall(DisasContext *dc) { - TCGv t0; - int l1; - if (dc->imm5 == 7) { LOG_DIS("scall\n"); } else if (dc->imm5 == 2) { @@ -595,9 +592,6 @@ static void dec_scall(DisasContext *dc) cpu_abort(dc->env, "invalid opcode\n"); } - t0 = tcg_temp_new(); - l1 = gen_new_label(); - if (dc->imm5 == 7) { tcg_gen_movi_tl(cpu_pc, dc->pc); t_gen_raise_exception(dc, EXCP_SYSTEMCALL); -- cgit v1.2.1