Skip to contentSkip to conversation

target/i386/svm_helper: eliminate duplicate local variable

PATCH New Paolo Bonzini 1 participant 1 message Sep 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386/svm_helper: eliminate duplicate local variable

This shadows an outer "cs" variable that is initialized to the same expression.

---
 target/i386/tcg/sysemu/svm_helper.c | 2 --
 1 file changed, 2 deletions(-)
target/i386/tcg/sysemu/svm_helper.c +0 -2
index 2d27731b608..32ff0dbb13c 100644
@@ -387,8 +387,6 @@ void helper_vmrun(CPUX86State *env, int aflag, int next_eip_addend)
     env->hflags2 |= HF2_GIF_MASK;
 
     if (ctl_has_irq(env)) {
-        CPUState *cs = env_cpu(env);
-
         cs->interrupt_request |= CPU_INTERRUPT_VIRQ;
     }
 
Signature · 1 line
2.41.0