]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: gadget: udc-xilinx: clean up a variable name
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Apr 2017 09:11:18 +0000 (12:11 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 17 May 2017 11:17:25 +0000 (14:17 +0300)
"ep->udc->lock" and "udc->lock" are the same thing.  It confuses Smatch
if we don't use the same name consistently.

Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/udc-xilinx.c

index 588e2531b8b81e05365f0d85fabd1e90452540a4..de207a90571ef1f3623735b361468a60bcdffb28 100644 (file)
@@ -1151,7 +1151,7 @@ static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req)
                        break;
        }
        if (&req->usb_req != _req) {
-               spin_unlock_irqrestore(&ep->udc->lock, flags);
+               spin_unlock_irqrestore(&udc->lock, flags);
                return -EINVAL;
        }
        xudc_done(ep, req, -ECONNRESET);