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

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

The manual mutex lock/unlock are still left in
handle_uaudio_stream_req() and its callee as they have a bit complex
locking patterns.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-8-tiwai@suse.de
sound/usb/qcom/qc_audio_offload.c