From: Dan Carpenter Date: Thu, 27 Apr 2017 09:11:18 +0000 (+0300) Subject: usb: gadget: udc-xilinx: clean up a variable name X-Git-Tag: MMI-PSA29.97-13-9~5313^2~23^2~45 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0df6d8db355a527c605725ffacce4bd119533a7c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- 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);