From: Davidlohr Bueso Date: Fri, 6 Jan 2012 14:06:18 +0000 (+0100) Subject: KVM: MMU: unnecessary NX state assignment X-Git-Tag: MMI-PSA29.97-13-9~17141^2~115 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a58ae614a28b1ae3bea1c74a307cdfb7c77dab8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git KVM: MMU: unnecessary NX state assignment We can remove the first ->nx state assignment since it is assigned afterwards anyways. Signed-off-by: Davidlohr Bueso Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 34da43086952..0a11468d853f 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -3321,7 +3321,6 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) context->get_cr3 = get_cr3; context->get_pdptr = kvm_pdptr_read; context->inject_page_fault = kvm_inject_page_fault; - context->nx = is_nx(vcpu); if (!is_paging(vcpu)) { context->nx = false;