From: Mohammed Gamal Date: Sat, 12 Jul 2008 13:02:08 +0000 (+0300) Subject: KVM: VMX: Remove redundant check in handle_rmode_exception X-Git-Tag: v2.6.28-rc1~269^2~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60bd83a125030878665684f353c7d36fd54f09fd;p=profile%2Fivi%2Fkernel-x86-ivi.git KVM: VMX: Remove redundant check in handle_rmode_exception Since checking for vcpu->arch.rmode.active is already done whenever we call handle_rmode_exception(), checking it inside the function is redundant. Signed-off-by: Mohammed Gamal Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index e8fed9b..9591ca7 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2224,9 +2224,6 @@ static void kvm_guest_debug_pre(struct kvm_vcpu *vcpu) static int handle_rmode_exception(struct kvm_vcpu *vcpu, int vec, u32 err_code) { - if (!vcpu->arch.rmode.active) - return 0; - /* * Instruction with address size override prefix opcode 0x67 * Cause the #SS fault with 0 error code in VM86 mode.