From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Timur Tabi <timur@tabi.org>, Xiubo Li <Xiubo.Lee@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org,
kernel-janitors@vger.kernel.org
Subject: Re: [patch] ASoC: fsl: add an error check
Date: Wed, 10 Jun 2015 09:55:45 -0700 [thread overview]
Message-ID: <20150610165544.GA8552@Asurada> (raw)
In-Reply-To: <20150610153723.GB10549@mwanda>
On Wed, Jun 10, 2015 at 06:37:23PM +0300, Dan Carpenter wrote:
> My static checker complains that:
>
> sound/soc/fsl/imx-wm8962.c:196 imx_wm8962_probe() warn:
> we tested 'ret' before and it was 'false'
>
> The intent was that we use "ret" to check imx_audmux_v2_configure_port().
>
> Fixes: 8de2ae2a7f1f ('ASoC: fsl: add imx-wm8962 machine driver')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Could you please use an subject like:
ASoC: imx-wm8962: Add a missing error check
(Since it only applies to this file)
Otherwise, Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Thank you indeed for the fix
Nicolin
> ---
> I assume checking for an error here will not change anything but I have
> not tested this patch.
>
> diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c
> index cd146d4..b38b98c 100644
> --- a/sound/soc/fsl/imx-wm8962.c
> +++ b/sound/soc/fsl/imx-wm8962.c
> @@ -190,7 +190,7 @@ static int imx_wm8962_probe(struct platform_device *pdev)
> dev_err(&pdev->dev, "audmux internal port setup failed\n");
> return ret;
> }
> - imx_audmux_v2_configure_port(ext_port,
> + ret = imx_audmux_v2_configure_port(ext_port,
> IMX_AUDMUX_V2_PTCR_SYN,
> IMX_AUDMUX_V2_PDCR_RXDSEL(int_port));
> if (ret) {
next prev parent reply other threads:[~2015-06-10 16:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 15:37 [patch] ASoC: fsl: add an error check Dan Carpenter
2015-06-10 16:55 ` Nicolin Chen [this message]
2015-06-10 19:17 ` Dan Carpenter
2015-06-10 17:33 ` Mark Brown
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=20150610165544.GA8552@Asurada \
--to=nicoleotsuka@gmail.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=perex@perex.cz \
--cc=timur@tabi.org \
--cc=tiwai@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).