mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
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:
parent
f4ee43ae6e
commit
43d4940c94