[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8dc6b92a-7906-4f03-969d-b61ed981f4d9@web.de>
Date: Tue, 8 Oct 2024 07:43:24 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Zhu Jun <zhujun2@...s.chinamobile.com>, linux-sound@...r.kernel.org,
"Geoffrey D. Bennett" <g@...vu>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ALSA: scarlett2: Add error check after retrieving PEQ
filter values
Please check the subsystem specification once more.
> Add error check after retrieving PEQ filter values in scarlett2_update_filter_values
> that ensure function returns error if PEQ filter value retrieval fails
* It is usually preferred to end a sentence with a dot, isn't it?
* Would you like to add any tags (like “Fixes” and “Cc”) accordingly?
…
> +++ b/sound/usb/mixer_scarlett2.c
> @@ -5614,6 +5614,9 @@ static int scarlett2_update_filter_values(struct usb_mixer_interface *mixer)
> SCARLETT2_BIQUAD_COEFFS,
> peq_flt_values);
>
> + if (err < 0)
> + return err;
> +
> for (i = 0, dst_idx = 0; i < info->dsp_input_count; i++) {
…
I suggest to omit a blank line before the return value check.
Regards,
Markus
Powered by blists - more mailing lists