ALSA: seq: ports: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:52:56 +0000 (09:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:21 +0000 (15:01 +0100)
commita02f7a170fc10255e405149c4ddf92bdfbe4ac1c
treef139be9d6bdc6d975ba56eadee5dc566a27c292d
parent6768bd100081298a3fbbceba785adb004de41674
ALSA: seq: ports: 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-15-tiwai@suse.de
sound/core/seq/seq_ports.c