]> git.proxmox.com Git - qemu.git/commitdiff
xhci: remove XHCIRing->base (unused)
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Apr 2013 11:03:08 +0000 (13:03 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Apr 2013 06:43:10 +0000 (08:43 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-xhci.c

index a26b78ec880484bb7615e2dee16b455226b21038..2c90e56c9917ba96989069c34cb1b836e290ccc0 100644 (file)
@@ -326,7 +326,6 @@ typedef enum EPType {
 } EPType;
 
 typedef struct XHCIRing {
-    dma_addr_t base;
     dma_addr_t dequeue;
     bool ccs;
 } XHCIRing;
@@ -943,7 +942,6 @@ static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v)
 static void xhci_ring_init(XHCIState *xhci, XHCIRing *ring,
                            dma_addr_t base)
 {
-    ring->base = base;
     ring->dequeue = base;
     ring->ccs = 1;
 }
@@ -1948,7 +1946,7 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
         streamid = 0;
         xhci_set_ep_state(xhci, epctx, NULL, EP_RUNNING);
     }
-    assert(ring->base != 0);
+    assert(ring->dequeue != 0);
 
     while (1) {
         XHCITransfer *xfer = &epctx->transfers[epctx->next_xfer];