]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: line6: Use guard() for mutex locks
authorTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2025 15:07:14 +0000 (17:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 1 Sep 2025 11:54:06 +0000 (13:54 +0200)
commit6dcbb0a9a6b50f5cb1c9cbb88914be98777b26a6
treeda0691d64f7a27961ee756fd2d2d73d33e170360
parentea3bfbbc9a28c6ede618a97af31d99f36d4050e6
ALSA: line6: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.  The core code of line6_pcm_release() is factored out,
so that it can be covered by guard() nicely, too.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-7-tiwai@suse.de
sound/usb/line6/driver.c
sound/usb/line6/pcm.c