From: Roger Quadros <rogerq@ti.com>
To: Xu Wang <vulab@iscas.ac.cn>, <gregkh@linuxfoundation.org>
Cc: <pawell@cadence.com>, <balbi@kernel.org>, <peter.chen@nxp.com>,
<colin.king@canonical.com>, <linux-usb@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb: cdns3: gadget: Remove unneeded variable ret
Date: Mon, 23 Dec 2019 10:53:54 +0200 [thread overview]
Message-ID: <890bc22f-9f03-f4c3-9fdc-7afe4c7321ff@ti.com> (raw)
In-Reply-To: <1576826378-4387-1-git-send-email-vulab@iscas.ac.cn>
On 20/12/2019 09:19, Xu Wang wrote:
> Remove unneeded variable ret used to store return value,just return 0.
>
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Acked-by: Roger Quadros <rogerq@ti.com>
> ---
> drivers/usb/cdns3/gadget.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c
> index 4c1e755..73b75a3 100644
> --- a/drivers/usb/cdns3/gadget.c
> +++ b/drivers/usb/cdns3/gadget.c
> @@ -2389,7 +2389,6 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget)
> struct cdns3_endpoint *priv_ep;
> u32 bEndpointAddress;
> struct usb_ep *ep;
> - int ret = 0;
> int val;
>
> priv_dev->gadget_driver = NULL;
> @@ -2413,7 +2412,7 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget)
> writel(0, &priv_dev->regs->usb_ien);
> writel(USB_CONF_DEVDS, &priv_dev->regs->usb_conf);
>
> - return ret;
> + return 0;
> }
>
> static const struct usb_gadget_ops cdns3_gadget_ops = {
>
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
prev parent reply other threads:[~2019-12-23 8:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-20 7:19 Xu Wang
2019-12-23 8:53 ` Roger Quadros [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=890bc22f-9f03-f4c3-9fdc-7afe4c7321ff@ti.com \
--to=rogerq@ti.com \
--cc=balbi@kernel.org \
--cc=colin.king@canonical.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pawell@cadence.com \
--cc=peter.chen@nxp.com \
--cc=vulab@iscas.ac.cn \
/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®