From: <Codrin.Ciubotariu@microchip.com>
To: <dan.carpenter@oracle.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [bug report] ASoC: atmel: mchp-pdmc: add PDMC driver
Date: Thu, 10 Mar 2022 15:09:17 +0000 [thread overview]
Message-ID: <c054cebe-5a4a-0858-1859-cfc91b6f4287@microchip.com> (raw)
In-Reply-To: <20220310144915.GA7354@kili>
On 10.03.2022 16:49, Dan Carpenter wrote:
> Hello Codrin Ciubotariu,
Hi Dan,
>
> The patch 50291652af52: "ASoC: atmel: mchp-pdmc: add PDMC driver"
> from Mar 7, 2022, leads to the following Smatch static checker
> warning:
>
> sound/soc/atmel/mchp-pdmc.c:186 mchp_pdmc_af_put()
> warn: this array is probably non-NULL. 'uvalue->value.integer.value'
>
> sound/soc/atmel/mchp-pdmc.c
> 181 static int mchp_pdmc_af_put(struct snd_kcontrol *kcontrol,
> 182 struct snd_ctl_elem_value *uvalue)
> 183 {
> 184 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol);
> 185 struct mchp_pdmc *dd = snd_soc_component_get_drvdata(component);
> --> 186 bool af = uvalue->value.integer.value ? true : false;
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> value is an array, not a pointer. It's always going to be non-NULL.
Indeed. There is already a patch that addresses this [1]. Thank you for
your report!
Best regards,
Codrin
[1] https://lkml.org/lkml/2022/3/9/63
prev parent reply other threads:[~2022-03-10 15:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-10 14:49 [bug report] ASoC: atmel: mchp-pdmc: add PDMC driver Dan Carpenter
2022-03-10 15:09 ` Codrin.Ciubotariu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c054cebe-5a4a-0858-1859-cfc91b6f4287@microchip.com \
--to=codrin.ciubotariu@microchip.com \
--cc=alsa-devel@alsa-project.org \
--cc=dan.carpenter@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.