Re: [PATCH RFT] ALSA: scarlett2: Add missing error check when initialise Autogain Status
From: Takashi Iwai
Date: Fri May 15 2026 - 02:34:32 EST
On Fri, 08 May 2026 05:39:14 +0200,
Robertus Diawan Chris wrote:
>
> When initialise new control with scarlett2_add_new_ctl() function for
> Autogain Status, scarlett2_add_new_ctl() might throw an error. So, add
> error check after initialise new control for Autogain Status.
>
> This is reported by Coverity Scan with CID 1598781 as UNUSED_VALUE.
>
> Fixes: 0a995e38dc44 ("ALSA: scarlett2: Add support for software-controllable input gain")
> Signed-off-by: Robertus Diawan Chris <robertusdchris@xxxxxxxxx>
Applied now. Thanks.
Takashi