summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-08-11 13:13:55 +0300
committerTakashi Iwai <tiwai@suse.de>2025-08-13 18:39:28 +0300
commitaff8436ed97b99cd27f192d9a71ac2b1aa7b9d03 (patch)
tree1e9d23a816b242344f33e8f8bf5f80776352df18 /include
parentefea7a57370b956ef612dc603faa2df9126cc3ed (diff)
downloadlinux-aff8436ed97b99cd27f192d9a71ac2b1aa7b9d03.tar.xz
ALSA: usb-audio: Use auto-cleanup for shutdown locks
Introduce an auto-cleanup macro for the temporary shutdown locks for USB-audio, and replace the manual lock/unlock pairs with it. Namely, the former err = snd_usb_lock_shutdown(chip); if (err < 0) return err; .... snd_usb_unlock_shutdown(chip); is replaced with CLASS(snd_usb_lock, pm)(chip); if (pm.err < 0) return pm.err; .... with the automatic unlocking. Link: https://patch.msgid.link/20250811101647.8637-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions