Skip to contentSkip to conversation

usb: xhci: remove unused variable ep

PATCH New Mathias Nyman 1 participant 1 message Dec 8, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/14 usb: xhci: remove unused variable ep

From: Corentin Labbe <[email protected]>

Fix the build warning: variable 'ep' set but not used

---
 drivers/usb/host/xhci.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/host/xhci.c +0 -2
index 31e3e46..89ad7c0 100644
@@ -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.
 	 */