From 7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 18:58:25 +0000 Subject: x86: remove dead assignments, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- target-i386/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'target-i386') diff --git a/target-i386/translate.c b/target-i386/translate.c index 307aabdd30..6311b6865c 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -763,7 +763,6 @@ static void gen_check_io(DisasContext *s, int ot, target_ulong cur_eip, if (s->cc_op != CC_OP_DYNAMIC) gen_op_set_cc_op(s->cc_op); gen_jmp_im(cur_eip); - state_saved = 1; } svm_flags |= (1 << (4 + ot)); next_eip = s->pc - s->cs_base; @@ -7744,7 +7743,7 @@ static inline void gen_intermediate_code_internal(CPUState *env, target_ulong pc_ptr; uint16_t *gen_opc_end; CPUBreakpoint *bp; - int j, lj, cflags; + int j, lj; uint64_t flags; target_ulong pc_start; target_ulong cs_base; @@ -7755,7 +7754,6 @@ static inline void gen_intermediate_code_internal(CPUState *env, pc_start = tb->pc; cs_base = tb->cs_base; flags = tb->flags; - cflags = tb->cflags; dc->pe = (flags >> HF_PE_SHIFT) & 1; dc->code32 = (flags >> HF_CS32_SHIFT) & 1; -- cgit v1.2.3