We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b104f8 commit 8e1a200Copy full SHA for 8e1a200
drivers/usb/cdns3/gadget.c
@@ -2389,7 +2389,6 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget)
2389
struct cdns3_endpoint *priv_ep;
2390
u32 bEndpointAddress;
2391
struct usb_ep *ep;
2392
- int ret = 0;
2393
int val;
2394
2395
priv_dev->gadget_driver = NULL;
@@ -2413,7 +2412,7 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget)
2413
2412
writel(0, &priv_dev->regs->usb_ien);
2414
writel(USB_CONF_DEVDS, &priv_dev->regs->usb_conf);
2415
2416
- return ret;
+ return 0;
2417
}
2418
2419
static const struct usb_gadget_ops cdns3_gadget_ops = {
0 commit comments