]> git.ipfire.org Git - thirdparty/linux.git/commit
ALSA: usb: scarlett2: Clean ups with guard() and __free()
authorTakashi Iwai <tiwai@suse.de>
Mon, 11 Aug 2025 08:15:00 +0000 (10:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Aug 2025 06:35:20 +0000 (08:35 +0200)
commit43d4940c944c20f41dde2e091284646367c10c60
tree08016d7162c271395a4e2b3544559cf38b8e5bd7
parentf4ee43ae6ea8c509d470f20e7b446adf5a167dba
ALSA: usb: scarlett2: Clean ups with guard() and __free()

There are lots of manual mutex lock/unlock and temporary kmalloc/kfree
patterns found in mixer_scalett2.c.  Let's simplify the code with the
recent lock guard() and auto cleanup with __free().

Only code refactoring, and there should be no actual behavior change.

Link: https://patch.msgid.link/20250811081502.30768-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett2.c