]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: seq: oss/midi: Cleanup with guard and auto-cleanup
authorTakashi Iwai <tiwai@suse.de>
Wed, 27 Aug 2025 08:05:15 +0000 (10:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 09:52:36 +0000 (11:52 +0200)
commit895a46e034f9aa11779c66f0bb41c51f50b265ef
treeb4d9e3a1b307ea03f3acea5ed8908bb331bd1ca9
parent1291fc664d2320af332e0f6b3c28a1a4e125fee9
ALSA: seq: oss/midi: Cleanup with guard and auto-cleanup

Use the auto-cleanup for the refcount management of seq_oss_midi
object.  The explicit call of snd_use_lock_free() is dropped by the
magic __free(seq_oss_midi) attribute.

Along with that, replace the manual mutex and spin locks with
guard().

Only code refactoring, and no behavior change.

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