]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87d898e61353e107a2b86fa09d92493526ef26f5
treef238e64e0cd8f3e1cfd1ea5b56e25aa7aaee1b5d
parent3ac5414b39bb0aa1be63a4017d07599de403ee4f
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