ALSA: pcm: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:53:03 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:22 +0000 (15:01 +0100)
commitdd0da75b9a2768710366a599c9bd70058e67e2ea
tree60fc384a555d4ef4cc1be7e7c559f5093f2cc0e9
parent1affe7bb50c9bda4d4ada1ecab90ce6d27e77b00
ALSA: pcm: 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-22-tiwai@suse.de
sound/core/pcm.c
sound/core/pcm_memory.c
sound/core/pcm_native.c