提交 7d04c2b7 编写于 作者: G Gerd Hoffmann

xhci: remove XHCIRing->base (unused)

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 45673671
...@@ -326,7 +326,6 @@ typedef enum EPType { ...@@ -326,7 +326,6 @@ typedef enum EPType {
} EPType; } EPType;
typedef struct XHCIRing { typedef struct XHCIRing {
dma_addr_t base;
dma_addr_t dequeue; dma_addr_t dequeue;
bool ccs; bool ccs;
} XHCIRing; } XHCIRing;
...@@ -943,7 +942,6 @@ static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v) ...@@ -943,7 +942,6 @@ static void xhci_event(XHCIState *xhci, XHCIEvent *event, int v)
static void xhci_ring_init(XHCIState *xhci, XHCIRing *ring, static void xhci_ring_init(XHCIState *xhci, XHCIRing *ring,
dma_addr_t base) dma_addr_t base)
{ {
ring->base = base;
ring->dequeue = base; ring->dequeue = base;
ring->ccs = 1; ring->ccs = 1;
} }
...@@ -1948,7 +1946,7 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, ...@@ -1948,7 +1946,7 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid,
streamid = 0; streamid = 0;
xhci_set_ep_state(xhci, epctx, NULL, EP_RUNNING); xhci_set_ep_state(xhci, epctx, NULL, EP_RUNNING);
} }
assert(ring->base != 0); assert(ring->dequeue != 0);
while (1) { while (1) {
XHCITransfer *xfer = &epctx->transfers[epctx->next_xfer]; XHCITransfer *xfer = &epctx->transfers[epctx->next_xfer];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册