Commit 1683b2416e4c514d30ff5844a06733d0444ee000
Committed by
Avi Kivity
1 parent
f55c3f419a
Exists in
master
and in
4 other branches
KVM: x86: cleanup unused local variable
fix: arch/x86/kvm/x86.c: In function ‘handle_emulation_failure’: arch/x86/kvm/x86.c:3844: warning: unused variable ‘ctxt’ Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
arch/x86/kvm/x86.c
... | ... | @@ -3857,8 +3857,6 @@ |
3857 | 3857 | |
3858 | 3858 | static int handle_emulation_failure(struct kvm_vcpu *vcpu) |
3859 | 3859 | { |
3860 | - struct x86_emulate_ctxt *ctxt = &vcpu->arch.emulate_ctxt; | |
3861 | - | |
3862 | 3860 | ++vcpu->stat.insn_emulation_fail; |
3863 | 3861 | trace_kvm_emulate_insn_failed(vcpu); |
3864 | 3862 | vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; |