]> Git Repo - qemu.git/commitdiff
m68k: remove dead assignments, spotted by clang analyzer
authorBlue Swirl <[email protected]>
Sun, 25 Apr 2010 19:50:51 +0000 (19:50 +0000)
committerBlue Swirl <[email protected]>
Sun, 25 Apr 2010 19:50:51 +0000 (19:50 +0000)
Value stored is never read.

Signed-off-by: Blue Swirl <[email protected]>
target-m68k/translate.c

index 99cf6ddef7b98b5746a7570418428764c8d0104e..5351880c68df662c3f4a052341e2fe32f7b539d1 100644 (file)
@@ -541,7 +541,6 @@ static TCGv gen_lea(DisasContext *s, uint16_t insn, int opsize)
             offset = read_im32(s);
             return gen_im32(offset);
         case 2: /* pc displacement  */
-            tmp = tcg_temp_new();
             offset = s->pc;
             offset += ldsw_code(s->pc);
             s->pc += 2;
@@ -2969,7 +2968,6 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
     int j, lj;
     target_ulong pc_start;
     int pc_offset;
-    int last_cc_op;
     int num_insns;
     int max_insns;
 
@@ -3023,7 +3021,6 @@ gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb,
         }
         if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO))
             gen_io_start();
-        last_cc_op = dc->cc_op;
         dc->insn_pc = dc->pc;
        disas_m68k_insn(env, dc);
         num_insns++;
This page took 0.031685 seconds and 4 git commands to generate.