summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2016-01-21 15:39:14 +0800
committerPeter Chen <peter.chen@nxp.com>2016-02-29 13:37:50 +0800
commit34d5732dd61f65143098a949fd3dc15af9a112cc (patch)
treea2246443b9c3c776c009af3537f3fff70a704e53 /drivers/usb/chipidea
parent6a6319f45d604426d15e8aa4886d3ecd65acc163 (diff)
downloadblackbird-op-linux-34d5732dd61f65143098a949fd3dc15af9a112cc.tar.gz
blackbird-op-linux-34d5732dd61f65143098a949fd3dc15af9a112cc.zip
usb: chipidea: udc: remove unused value assignment
retval is assigned to be -EOVERFLOW but is overwritten later before it's used, remove this unused value assignment. Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/chipidea')
-rw-r--r--drivers/usb/chipidea/udc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index 3eafa2c9a2ba..00250ab38ddb 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -819,7 +819,6 @@ static int _ep_queue(struct usb_ep *ep, struct usb_request *req,
ci->ep0out : ci->ep0in;
if (!list_empty(&hwep->qh.queue)) {
_ep_nuke(hwep);
- retval = -EOVERFLOW;
dev_warn(hwep->ci->dev, "endpoint ctrl %X nuked\n",
_usb_addr(hwep));
}
OpenPOWER on IntegriCloud