usb: host: xhci: remove unused trb var in xhci_irq()
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Sun, 16 Dec 2012 03:21:31 +0000 (04:21 +0100)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 3 Jan 2013 22:10:39 +0000 (14:10 -0800)
The union xhci_trb *trb variable is defined and assigned
inside the xHCI IRQ handler function but is never used.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-ring.c

index 59fb5c677dbe5cb899ef2f442a5a565bf0aa8dd6..f69720983fc7a914ec35020766117f5d6f1b5b4b 100644 (file)
@@ -2706,13 +2706,11 @@ irqreturn_t xhci_irq(struct usb_hcd *hcd)
 {
        struct xhci_hcd *xhci = hcd_to_xhci(hcd);
        u32 status;
-       union xhci_trb *trb;
        u64 temp_64;
        union xhci_trb *event_ring_deq;
        dma_addr_t deq;
 
        spin_lock(&xhci->lock);
-       trb = xhci->event_ring->dequeue;
        /* Check if the xHC generated the interrupt, or the irq is shared */
        status = xhci_readl(xhci, &xhci->op_regs->status);
        if (status == 0xffffffff)