From: Corentin Labbe Date: Fri, 8 Dec 2017 15:59:04 +0000 (+0200) Subject: usb: xhci: remove unused variable urb_priv X-Git-Tag: for-linus-20180210~22^2~77 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ce5b2a6857cc674b1a8ebf9c4bce5851a84991ef;p=linux-block.git usb: xhci: remove unused variable urb_priv Fix the build warning: variable 'urb_priv' 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-ring.c b/drivers/usb/host/xhci-ring.c index c239c688076c..9a914b638b02 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1878,12 +1878,10 @@ int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code) static int xhci_td_cleanup(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_ring *ep_ring, int *status) { - struct urb_priv *urb_priv; struct urb *urb = NULL; /* Clean up the endpoint's TD list */ urb = td->urb; - urb_priv = urb->hcpriv; /* if a bounce buffer was used to align this td then unmap it */ xhci_unmap_td_bounce_buffer(xhci, ep_ring, td);