From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUYe7-0004kL-T1 for qemu-devel@nongnu.org; Tue, 23 Apr 2013 04:32:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUYe5-0001LV-CU for qemu-devel@nongnu.org; Tue, 23 Apr 2013 04:32:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUYe5-0001L6-4u for qemu-devel@nongnu.org; Tue, 23 Apr 2013 04:32:13 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3N8WBHB014032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 23 Apr 2013 04:32:12 -0400 From: Gerd Hoffmann Date: Tue, 23 Apr 2013 10:32:06 +0200 Message-Id: <1366705929-11251-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1366705929-11251-1-git-send-email-kraxel@redhat.com> References: <1366705929-11251-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] xhci: remove XHCIRing->base (unused) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index a26b78e..2c90e56 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -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]; -- 1.7.9.7