KVM: x86 emulator: remove useless label from x86_emulate_insn()
PATCH 1/1 KVM: x86 emulator: remove useless label from x86_emulate_insn()
Signed-off-by Wei Yongjun <[email protected]>
--- arch/x86/kvm/emulate.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
arch/x86/kvm/emulate.c +1 -5
@@ -2760,16 +2760,12 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt) c->eip = ctxt->eip; } -if (c->src.type ==OP_MEM ) { -if (c->d & NoAccess) - goto no_fetch; +if ((c->src.type ==OP_MEM ) && !(c->d & NoAccess)) { rc =read_emulated (ctxt, ops, c->src.addr.mem, c->src.valptr, c->src.bytes);if (rc !=X86EMUL_CONTINUE ) goto done; c->src.orig_val = c->src.val; - no_fetch: - ; }if (c->src2.type ==OP_MEM ) {
Signature · 1 line
1.7.0.4
Avi Kivity
AppliedQuoted 1 line · Wei Yongjun
Signed-off-by Wei Yongjun <[email protected]>
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function