From: Julia Lawall <julia.lawall@lip6.fr>
To: kbuild test robot <fengguang.wu@intel.com>, peter.chen@freescale.com
Cc: kbuild@01.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org,
Julia Lawall <julia.lawall@lip6.fr>
Subject: Re: [PATCH] usb: chipidea: usbmisc_imx: fix returnvar.cocci warnings
Date: Wed, 25 Mar 2015 07:23:52 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.02.1503250723070.2205@localhost6.localdomain6> (raw)
In-Reply-To: <20150324234408.GA120171@athens>
Please take a look.
thanks,
julia
On Wed, 25 Mar 2015, kbuild test robot wrote:
> TO: Peter Chen <peter.chen@freescale.com>
> CC: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
> CC: linux-usb@vger.kernel.org
> CC: linux-kernel@vger.kernel.org
>
> drivers/usb/chipidea/usbmisc_imx.c:277:5-8: Unneeded variable: "ret". Return "0" on line 297
>
>
> Removes unneeded variable used to store return value.
>
> Generated by: scripts/coccinelle/misc/returnvar.cocci
>
> CC: Peter Chen <peter.chen@freescale.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
>
> Please take the patch only if it's a positive warning. Thanks!
>
> usbmisc_imx.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> --- a/drivers/usb/chipidea/usbmisc_imx.c
> +++ b/drivers/usb/chipidea/usbmisc_imx.c
> @@ -274,7 +274,6 @@ static int usbmisc_imx6sx_init(struct im
> unsigned long flags;
> struct imx_usbmisc *usbmisc = dev_get_drvdata(data->dev);
> u32 val;
> - int ret = 0;
>
> usbmisc_imx6q_init(data);
>
> @@ -294,7 +293,7 @@ static int usbmisc_imx6sx_init(struct im
> spin_unlock_irqrestore(&usbmisc->lock, flags);
> }
>
> - return ret;
> + return 0;
> }
>
> static int usbmisc_vf610_init(struct imx_usbmisc_data *data)
>
next parent reply other threads:[~2015-03-25 6:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201503250705.ZLF1deME%fengguang.wu@intel.com>
[not found] ` <20150324234408.GA120171@athens>
2015-03-25 6:23 ` Julia Lawall [this message]
2015-03-25 6:29 ` Peter Chen
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=alpine.DEB.2.02.1503250723070.2205@localhost6.localdomain6 \
--to=julia.lawall@lip6.fr \
--cc=fengguang.wu@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=kbuild@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=peter.chen@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®