]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: seq: Clean up spin lock with guard()
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Aug 2025 08:05:08 +0000 (10:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 09:52:35 +0000 (11:52 +0200)
commite7b318eb97f47c451411c703eebe6fb15e0bd5eb
treea1f85d485d15e79d0422e7bfa30eafabecf7e50e
parentdf2e8107f037a87459ffc0eadb0b19e2611913f9
ALSA: seq: Clean up spin lock with guard()

Use guard() for spin locks to manage the sequencer client locking.

The code about the refcounting was modified with the new
snd_seq_client_ref() and *_unref() helpers instead of the ugly goto,
too.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250827080520.7544-3-tiwai@suse.de
sound/core/seq/seq_clientmgr.c
sound/core/seq/seq_clientmgr.h