Re: [PATCH] KVM: SVM: Remove redundant ret = 0 in svm_set_nested_state

From: Sean Christopherson

Date: Tue Jul 14 2026 - 15:41:23 EST


On Thu, 18 Jun 2026 16:52:17 +0800, Qiang Ma wrote:
> 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.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] KVM: SVM: Remove redundant ret = 0 in svm_set_nested_state
https://github.com/kvm-x86/linux/commit/bfafeb04a040

--
https://github.com/kvm-x86/linux/tree/next