KVM: SVM: Remove redundant ret = 0 in svm_set_nested_state

In svm_set_nested_state(), the success path reaches out_free with
ret already set to 0 from nested_svm_load_cr3(). The explicit
'ret = 0' assignment before out_free is therefore redundant.
Remove it.

No functional change.

Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Link: https://patch.msgid.link/20260618085217.3934985-1-maqianga@uniontech.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Qiang Ma
2026-06-18 16:52:17 +08:00
committed by Sean Christopherson
parent 78684b65fc
commit bfafeb04a0

View File

@@ -2101,7 +2101,6 @@ static int svm_set_nested_state(struct kvm_vcpu *vcpu,
kvm_make_request(KVM_REQ_APICV_UPDATE, vcpu);
kvm_make_request(KVM_REQ_GET_NESTED_STATE_PAGES, vcpu);
ret = 0;
out_free:
kfree(save);
kfree(ctl);