|
|
958e1b |
From 20c1e309f606aaec8274ff3cc7471382de049473 Mon Sep 17 00:00:00 2001
|
|
|
958e1b |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
958e1b |
Date: Fri, 11 Jul 2014 14:20:48 +0200
|
|
|
958e1b |
Subject: [PATCH 14/43] usb-hcd-xhci: Remove unused sstreamsm member from
|
|
|
958e1b |
XHCIStreamContext
|
|
|
958e1b |
|
|
|
958e1b |
Message-id: <1405088470-24115-16-git-send-email-kraxel@redhat.com>
|
|
|
958e1b |
Patchwork-id: 59828
|
|
|
958e1b |
O-Subject: [RHEL-7.1 qemu-kvm PATCH 15/37] usb-hcd-xhci: Remove unused sstreamsm member from XHCIStreamContext
|
|
|
958e1b |
Bugzilla: 980747
|
|
|
958e1b |
RH-Acked-by: Dr. David Alan Gilbert (git) <dgilbert@redhat.com>
|
|
|
958e1b |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
958e1b |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
958e1b |
|
|
|
958e1b |
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
958e1b |
|
|
|
958e1b |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
958e1b |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
958e1b |
(cherry picked from commit 946ff2c0c353e4bf493f6ff2bcc308adddee4a4c)
|
|
|
958e1b |
---
|
|
|
958e1b |
hw/usb/hcd-xhci.c | 9 ---------
|
|
|
958e1b |
1 file changed, 9 deletions(-)
|
|
|
958e1b |
|
|
|
958e1b |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
958e1b |
---
|
|
|
958e1b |
hw/usb/hcd-xhci.c | 9 ---------
|
|
|
958e1b |
1 file changed, 9 deletions(-)
|
|
|
958e1b |
|
|
|
958e1b |
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
|
|
|
958e1b |
index bb3bba3..af0c42d 100644
|
|
|
958e1b |
--- a/hw/usb/hcd-xhci.c
|
|
|
958e1b |
+++ b/hw/usb/hcd-xhci.c
|
|
|
958e1b |
@@ -374,7 +374,6 @@ struct XHCIStreamContext {
|
|
|
958e1b |
dma_addr_t pctx;
|
|
|
958e1b |
unsigned int sct;
|
|
|
958e1b |
XHCIRing ring;
|
|
|
958e1b |
- XHCIStreamContext *sstreams;
|
|
|
958e1b |
};
|
|
|
958e1b |
|
|
|
958e1b |
struct XHCIEPContext {
|
|
|
958e1b |
@@ -1135,7 +1134,6 @@ static void xhci_reset_streams(XHCIEPContext *epctx)
|
|
|
958e1b |
|
|
|
958e1b |
for (i = 0; i < epctx->nr_pstreams; i++) {
|
|
|
958e1b |
epctx->pstreams[i].sct = -1;
|
|
|
958e1b |
- g_free(epctx->pstreams[i].sstreams);
|
|
|
958e1b |
}
|
|
|
958e1b |
}
|
|
|
958e1b |
|
|
|
958e1b |
@@ -1148,15 +1146,8 @@ static void xhci_alloc_streams(XHCIEPContext *epctx, dma_addr_t base)
|
|
|
958e1b |
|
|
|
958e1b |
static void xhci_free_streams(XHCIEPContext *epctx)
|
|
|
958e1b |
{
|
|
|
958e1b |
- int i;
|
|
|
958e1b |
-
|
|
|
958e1b |
assert(epctx->pstreams != NULL);
|
|
|
958e1b |
|
|
|
958e1b |
- if (!epctx->lsa) {
|
|
|
958e1b |
- for (i = 0; i < epctx->nr_pstreams; i++) {
|
|
|
958e1b |
- g_free(epctx->pstreams[i].sstreams);
|
|
|
958e1b |
- }
|
|
|
958e1b |
- }
|
|
|
958e1b |
g_free(epctx->pstreams);
|
|
|
958e1b |
epctx->pstreams = NULL;
|
|
|
958e1b |
epctx->nr_pstreams = 0;
|
|
|
958e1b |
--
|
|
|
958e1b |
1.8.3.1
|
|
|
958e1b |
|