Re: [PATCH] x86/apic: KVM: Use guard() instead of mutex_lock() to simplify code

Sean Christopherson
2025-09-16T20:00:33Z

On Mon, Sep 15, 2025, Sean Christopherson wrote:
> On Mon, 01 Sep 2025 21:18:21 +0800, Liao Yuanhong wrote:
> > Using guard(mutex) instead of mutex_lock/mutex_unlock pair. Simplifies the
> > error handling to just return in case of error. No need for the 'out' label
> > and variable 'ret' anymore so remove it.
>
> Applied to kvm-x86 misc, thanks!
>
> [1/1] x86/apic: KVM: Use guard() instead of mutex_lock() to simplify code
> https://github.com/kvm-x86/linux/commit/50f4db196766

I force pushed to fixup an unrelated commit, new hash: