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>
This commit is contained in:
Takashi Iwai 2025-08-11 10:15:00 +02:00
parent f4ee43ae6e
commit 43d4940c94

File diff suppressed because it is too large Load diff