diff options
author | Dan Carpenter | 2017-04-27 11:11:18 +0200 |
---|---|---|
committer | Felipe Balbi | 2017-05-17 13:17:25 +0200 |
commit | 0df6d8db355a527c605725ffacce4bd119533a7c (patch) | |
tree | 731913813a6319850bbd15b072fbbacd93d9e929 /drivers/usb/gadget/udc/udc-xilinx.c | |
parent | usb: dwc3: add disable u2mac linestate check quirk (diff) | |
download | kernel-qcow2-linux-0df6d8db355a527c605725ffacce4bd119533a7c.tar.gz kernel-qcow2-linux-0df6d8db355a527c605725ffacce4bd119533a7c.tar.xz kernel-qcow2-linux-0df6d8db355a527c605725ffacce4bd119533a7c.zip |
usb: gadget: udc-xilinx: clean up a variable name
"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>
Diffstat (limited to 'drivers/usb/gadget/udc/udc-xilinx.c')
-rw-r--r-- | drivers/usb/gadget/udc/udc-xilinx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index 588e2531b8b8..de207a90571e 100644 --- a/drivers/usb/gadget/udc/udc-xilinx.c +++ b/drivers/usb/gadget/udc/udc-xilinx.c @@ -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); |