aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-15 10:38:30 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:15:48 -0400
commitaf5b4f7ff7ec76400b89db9538accd9aeb996da4 (patch)
treeb1aaf004ac6ae990110bacbee6e68f6a5ae8994e
parentc73e197bc525e67b71578126b679446f5b88b508 (diff)
KVM: x86 emulator: check return value against correct define
Check return value against correct define instead of open code the value. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index 4dce80560d26..670ca8f151d2 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -566,7 +566,7 @@ static u32 group2_table[] = {
566#define insn_fetch(_type, _size, _eip) \ 566#define insn_fetch(_type, _size, _eip) \
567({ unsigned long _x; \ 567({ unsigned long _x; \
568 rc = do_insn_fetch(ctxt, ops, (_eip), &_x, (_size)); \ 568 rc = do_insn_fetch(ctxt, ops, (_eip), &_x, (_size)); \
569 if (rc != 0) \ 569 if (rc != X86EMUL_CONTINUE) \
570 goto done; \ 570 goto done; \
571 (_eip) += (_size); \ 571 (_eip) += (_size); \
572 (_type)_x; \ 572 (_type)_x; \