Skip to content

Commit

Permalink
KVM: MMU: unnecessary NX state assignment
Browse files Browse the repository at this point in the history
We can remove the first ->nx state assignment since it is assigned afterwards anyways.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Davidlohr Bueso authored and Avi Kivity committed Mar 5, 2012
1 parent 3e6afcf commit 4a58ae6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a58ae6

Please sign in to comment.