Received: from eggs.gnu.org ([2001:4830:134:3::10]:44767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOBH5-0005tq-NX for qemu-devel@nongnu.org; Mon, 23 Sep 2013 14:54:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VOBGy-0002JU-F1 for qemu-devel@nongnu.org; Mon, 23 Sep 2013 14:54:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VOBGy-0002JP-6x for qemu-devel@nongnu.org; Mon, 23 Sep 2013 14:54:16 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8NIsFTa021005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 Sep 2013 14:54:15 -0400 From: Hans de Goede Date: Mon, 23 Sep 2013 20:54:04 +0200 Message-Id: <1379962447-5431-5-git-send-email-hdegoede@redhat.com> In-Reply-To: <1379962447-5431-1-git-send-email-hdegoede@redhat.com> References: <1379962447-5431-1-git-send-email-hdegoede@redhat.com> Subject: [Qemu-devel] [PATCH 4/7] usb-hcd-xhci: Remove unused sstreamsm member from XHCIStreamContext List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Hans de Goede , qemu-devel@nongnu.org Signed-off-by: Hans de Goede --- hw/usb/hcd-xhci.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 286d272..b343235 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -374,7 +374,6 @@ struct XHCIStreamContext { dma_addr_t pctx; unsigned int sct; XHCIRing ring; - XHCIStreamContext *sstreams; }; struct XHCIEPContext { @@ -1117,7 +1116,6 @@ static void xhci_reset_streams(XHCIEPContext *epctx) for (i = 0; i < epctx->nr_pstreams; i++) { epctx->pstreams[i].sct = -1; - g_free(epctx->pstreams[i].sstreams); } } @@ -1170,15 +1168,9 @@ static TRBCCode xhci_alloc_streams(XHCIEPContext *epctx, dma_addr_t base) static void xhci_free_streams(XHCIEPContext *epctx) { USBEndpoint *ep; - int i; assert(epctx->pstreams != NULL); - if (!epctx->lsa) { - for (i = 0; i < epctx->nr_pstreams; i++) { - g_free(epctx->pstreams[i].sstreams); - } - } g_free(epctx->pstreams); epctx->pstreams = NULL; epctx->nr_pstreams = 0; -- 1.8.3.1