ALSA: ump: Use guard() for locking
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Feb 2024 08:52:43 +0000 (09:52 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2024 14:01:20 +0000 (15:01 +0100)
commit631896f7eaaf8cf8c639b065d3c9fbaa66da5d32
treef224bb2945862fdb9a83137e96cca348671540e2
parent9301a412303725ae511229c22ea0f326ad47ad07
ALSA: ump: 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-2-tiwai@suse.de
sound/core/ump.c