ALSA: seq: prioq: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:53:02 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:22 +0000 (15:01 +0100)
commit1affe7bb50c9bda4d4ada1ecab90ce6d27e77b00
treeb4fc5f25b757b388a759e23471573db86656dd1c
parenta04f2c396031a33a1df51c9c6012650a40ba9d7e
ALSA: seq: prioq: 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-21-tiwai@suse.de
sound/core/seq/seq_prioq.c