diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-06-05 17:41:17 +0530 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-06-18 11:58:29 +0300 |
commit | 811e5c3d3c4adf0b037fab3417395d3060a4492a (patch) | |
tree | 339a1144337e3b9550add88e6e5ad6ed8f32395e | |
parent | 67929a7ded5263106931521c3455e3250f0a26ff (diff) | |
download | linux-811e5c3d3c4adf0b037fab3417395d3060a4492a.tar.gz linux-811e5c3d3c4adf0b037fab3417395d3060a4492a.tar.bz2 linux-811e5c3d3c4adf0b037fab3417395d3060a4492a.zip |
fotg210-udc: Remove unneeded variable
This patch fixes below warning reported by coccicheck
drivers/usb/gadget/udc/fotg210-udc.c:484:5-8: Unneeded variable: "ret".
Return "0" on line 507
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r-- | drivers/usb/gadget/udc/fotg210-udc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index cec49294bac6..21f3e6c4e4d6 100644 --- a/drivers/usb/gadget/udc/fotg210-udc.c +++ b/drivers/usb/gadget/udc/fotg210-udc.c @@ -481,7 +481,6 @@ static int fotg210_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedge) struct fotg210_ep *ep; struct fotg210_udc *fotg210; unsigned long flags; - int ret = 0; ep = container_of(_ep, struct fotg210_ep, ep); @@ -504,7 +503,7 @@ static int fotg210_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedge) } spin_unlock_irqrestore(&ep->fotg210->lock, flags); - return ret; + return 0; } static int fotg210_ep_set_halt(struct usb_ep *_ep, int value) |