usb: chipidea: udc: remove unused value assignment
authorLi Jun <jun.li@nxp.com>
Thu, 21 Jan 2016 07:39:14 +0000 (15:39 +0800)
committerPeter Chen <peter.chen@nxp.com>
Mon, 29 Feb 2016 05:37:50 +0000 (13:37 +0800)
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>
drivers/usb/chipidea/udc.c

index 3eafa2c9a2ba4a2fe742cce8a6ef7e0e03d14b37..00250ab38ddb21ae1106568b68ac968ecc7e9ddf 100644 (file)
@@ -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));
                }