KVM: SVM: Unconditionally invoke sev_hardware_teardown()
authorSean Christopherson <seanjc@google.com>
Thu, 22 Apr 2021 02:11:20 +0000 (19:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Apr 2021 09:27:16 +0000 (05:27 -0400)
commit4cafd0c572a22a568904364071910d238426c50d
treeae9a4c23bef5f57c191172cf5116bacb1cbdc98f
parent6c2c7bf5803c150d0f86ddde3590a15e26614921
KVM: SVM: Unconditionally invoke sev_hardware_teardown()

Remove the redundant svm_sev_enabled() check when calling
sev_hardware_teardown(), the teardown helper itself does the check.
Removing the check from svm.c will eventually allow dropping
svm_sev_enabled() entirely.

No functional change intended.

Reviewed by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210422021125.3417167-11-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c