From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41BFC1A0E02 for ; Thu, 11 Jun 2015 02:56:07 +1000 (AEST) Received: by qgf75 with SMTP id 75so18309915qgf.1 for ; Wed, 10 Jun 2015 09:56:04 -0700 (PDT) Date: Wed, 10 Jun 2015 09:55:45 -0700 From: Nicolin Chen To: Dan Carpenter Cc: Timur Tabi , Xiubo Li , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, kernel-janitors@vger.kernel.org Subject: Re: [patch] ASoC: fsl: add an error check Message-ID: <20150610165544.GA8552@Asurada> References: <20150610153723.GB10549@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20150610153723.GB10549@mwanda> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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 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) {