ALSA: core: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:52:53 +0000 (09:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:21 +0000 (15:01 +0100)
commit742ecf3ce1acdbcd0bc936178e1eaf346a0fd376
tree797c71fe7470331254c6364b9cb2ffe1d4300bea
parent7234795b59f7b0b14569ec46dce56300a4988067
ALSA: core: 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-12-tiwai@suse.de
sound/core/init.c
sound/core/sound.c
sound/core/sound_oss.c