ALSA: mixer_oss: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:52:49 +0000 (09:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:21 +0000 (15:01 +0100)
commit2dc49651fca1e8ecd6c177cd9b576a26761a5cdf
tree6197f59c7f35879dc97082ceedaf18f9583c7415
parent4b72362b1228d9aad684e4fcaa422d9562066fe1
ALSA: mixer_oss: 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-8-tiwai@suse.de
sound/core/oss/mixer_oss.c