lkml.org 
[lkml]   [2019]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] usb: cdns3: gadget: Remove unneeded variable ret
From
Date


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

\
 
 \ /
  Last update: 2019-12-23 09:54    [W:0.030 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site