[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87ild8mt58.wl-tiwai@suse.de>
Date: Thu, 04 May 2023 09:51:15 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Ruliang Lin <u202112092@...t.edu.cn>
Cc: Daniel Mack <zonque@...il.com>, Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Karsten Wiese <fzu@...gehoertderstaat.de>,
hust-os-kernel-patches@...glegroups.com,
Dongliang Mu <dzm91@...t.edu.cn>,
Daniel Mack <daniel@...aq.org>,
Jaroslav Kysela <perex@...e.cz>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sound: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init`
On Thu, 04 May 2023 08:50:53 +0200,
Ruliang Lin wrote:
>
> Smatch complains that:
> snd_usb_caiaq_input_init() warn: missing error code 'ret'
>
> This patch adds a new case to handle the situation where the
> device does not support any input methods in the
> `snd_usb_caiaq_input_init` function. It returns an `-EINVAL` error code
> to indicate that no input methods are supported on the device.
>
> Fixes: 523f1dce3743 ("[ALSA] Add Native Instrument usb audio device support")
> Signed-off-by: Ruliang Lin <u202112092@...t.edu.cn>
> Reviewed-by: Dongliang Mu <dzm91@...t.edu.cn>
> ---
> The issue is found by static analyzer. The patched code has passed
> Smatch checker, but remains untested on real device.
Thanks, applied.
Takashi
Powered by blists - more mailing lists