projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b104f8
)
usb: cdns3: gadget: Remove unneeded variable ret
author
Xu Wang
<vulab@iscas.ac.cn>
Fri, 20 Dec 2019 07:19:38 +0000
(07:19 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 30 Dec 2019 19:11:30 +0000
(20:11 +0100)
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>
Link:
https://lore.kernel.org/r/1576826378-4387-1-git-send-email-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/cdns3/gadget.c
b/drivers/usb/cdns3/gadget.c
index 4c1e755093039d0582ca30922d620009441aed0c..73b75a35ce19b41f024456d2c9823aff64efc06b 100644
(file)
--- 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 = {