From: Corentin Labbe Date: Fri, 8 Dec 2017 15:59:03 +0000 (+0200) Subject: usb: xhci: remove unused variable ep X-Git-Tag: v5.15~9513^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bed53019d9d811e06203914ef39cea44bfdad74a;p=platform%2Fkernel%2Flinux-starfive.git usb: xhci: remove unused variable ep Fix the build warning: variable 'ep' set but not used Signed-off-by: Corentin Labbe Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 31e3e46..89ad7c0 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -2838,12 +2838,10 @@ void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) { struct xhci_dequeue_state deq_state; - struct xhci_virt_ep *ep; struct usb_device *udev = td->urb->dev; xhci_dbg_trace(xhci, trace_xhci_dbg_reset_ep, "Cleaning up stalled endpoint ring"); - ep = &xhci->devs[udev->slot_id]->eps[ep_index]; /* We need to move the HW's dequeue pointer past this TD, * or it will attempt to resend it on the next doorbell ring. */