ALSA: seq: midi: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:52:59 +0000 (09:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:22 +0000 (15:01 +0100)
commit45bab301d80b94790c1d9e98ac903aeb373d5f36
treecf96c2578669779ec27d2065df3204505c99d088
parentaa75a2229219caee5dbee7574ccddeaf8b8f67f6
ALSA: seq: midi: Use guard() for locking

We can simplify the code gracefully with new guard() macro and co for
automatic cleanup of locks.

Only the code refactoring, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240227085306.9764-18-tiwai@suse.de
sound/core/seq/seq_midi.c
sound/core/seq/seq_midi_event.c