提交 0df6d8db 编写于 作者: D Dan Carpenter 提交者: Felipe Balbi

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: NSören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 65db7a0c
...@@ -1151,7 +1151,7 @@ static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req) ...@@ -1151,7 +1151,7 @@ static int xudc_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req)
break; break;
} }
if (&req->usb_req != _req) { if (&req->usb_req != _req) {
spin_unlock_irqrestore(&ep->udc->lock, flags); spin_unlock_irqrestore(&udc->lock, flags);
return -EINVAL; return -EINVAL;
} }
xudc_done(ep, req, -ECONNRESET); xudc_done(ep, req, -ECONNRESET);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册