KVM: x86/mmu: Remove redundant is_tdp_mmu_root check
authorDavid Matlack <dmatlack@google.com>
Thu, 17 Jun 2021 23:19:45 +0000 (23:19 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Jun 2021 10:45:46 +0000 (06:45 -0400)
commitaa23c0ad14228ccfcd0b6f799dd34b348a5f2b1e
treef238e64e0cd8f3e1cfd1ea5b56e25aa7aaee1b5d
parentc62efff28bb5eb60d60415a0dd0c864c64be0671
KVM: x86/mmu: Remove redundant is_tdp_mmu_root check

The check for is_tdp_mmu_root in kvm_tdp_mmu_map is redundant because
kvm_tdp_mmu_map's only caller (direct_page_fault) already checks
is_tdp_mmu_root.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20210617231948.2591431-2-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c