ALSA: pcm: oss: Use guard() for setup
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:53:05 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:22 +0000 (15:01 +0100)
commit3923de04c81733b30b8ed667569632272fdfed9a
treebbe980932029449da9683f67a56972def45b0137
parent650224fe8d5f6dbe6cc5875d14bf80da60dd56f8
ALSA: pcm: oss: Use guard() for setup

The setup_mutex in PCM oss code can be simplified with guard().
(params_lock is tough and not trivial to covert, though.)

Only the code refactoring, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240227085306.9764-24-tiwai@suse.de
sound/core/oss/pcm_oss.c