KVM: SEV: Use to_kvm_sev_info() for fetching kvm_sev_info struct

Simplify code by replacing &to_kvm_svm(kvm)->sev_info with
to_kvm_sev_info() helper function. Wherever possible, drop the local
variable declaration and directly use the helper instead.

No functional changes.

Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Reviewed-by: Pavan Kumar Paluri <papaluri@amd.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Link: https://lore.kernel.org/r/20250123055140.144378-1-nikunj@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Nikunj A Dadhania 2025-01-23 11:21:40 +05:30 • committed by Sean Christopherson
commit 8a01902a01
2 changed files with 54 additions and 78 deletions