ALSA: scarlett2: Add missing error checks to *_ctl_get()
authorGeoffrey D. Bennett <g@b4.vu>
Tue, 19 Dec 2023 17:37:37 +0000 (04:07 +1030)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 14:39:27 +0000 (15:39 +0100)
commit50603a67daef161c78c814580d57f7f0be57167e
treef5450c414098ddf2beffe0703e42f5ef99c61111
parentca459dfa7d4ed9098fcf13e410963be6ae9b6bf3
ALSA: scarlett2: Add missing error checks to *_ctl_get()

The *_ctl_get() functions which call scarlett2_update_*() were not
checking the return value. Fix to check the return value and pass to
the caller.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Fixes: 9e4d5c1be21f ("ALSA: usb-audio: Scarlett Gen 2 mixer interface")
Link: https://lore.kernel.org/r/32a5fdc83b05fa74e0fcdd672fbf71d75c5f0a6d.1703001053.git.g@b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett2.c