Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a58ae61 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Avi Kivity
Browse files

KVM: MMU: unnecessary NX state assignment



We can remove the first ->nx state assignment since it is assigned afterwards anyways.

Signed-off-by: default avatarDavidlohr Bueso <dave@gnu.org>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 3e6afcf1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;