Skip to content
Commit 8a01902a authored by Nikunj A Dadhania's avatar Nikunj A Dadhania Committed by Sean Christopherson
Browse files

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: default avatarNikunj A Dadhania <nikunj@amd.com>
Reviewed-by: default avatarPavan Kumar Paluri <papaluri@amd.com>
Reviewed-by: default avatarPankaj Gupta <pankaj.gupta@amd.com>
Link: https://lore.kernel.org/r/20250123055140.144378-1-nikunj@amd.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent a64dcfb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment