dftxbs3e / rpms / qemu

Forked from rpms/qemu 3 years ago
Clone
c8dfc65
From 1b1c99626404328b571e1f6c18b50f9bed9c2e2c Mon Sep 17 00:00:00 2001
c8dfc65
From: Hans de Goede <hdegoede@redhat.com>
c8dfc65
Date: Tue, 28 Aug 2012 09:08:45 +0200
c8dfc65
Subject: [PATCH 321/366] usb-redir: Get rid of unused async-struct dev member
c8dfc65
c8dfc65
This is a preparation patch for completely getting rid of the async-packet
c8dfc65
struct in usb-redir, instead relying on the (new) per ep queues in the
c8dfc65
qemu usb core.
c8dfc65
c8dfc65
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
c8dfc65
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
c8dfc65
---
c8dfc65
 hw/usb/redirect.c | 2 --
c8dfc65
 1 file changed, 2 deletions(-)
c8dfc65
c8dfc65
diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
c8dfc65
index 816a19a..4a23b82 100644
c8dfc65
--- a/hw/usb/redirect.c
c8dfc65
+++ b/hw/usb/redirect.c
c8dfc65
@@ -96,7 +96,6 @@ struct USBRedirDevice {
c8dfc65
 };
c8dfc65
 
c8dfc65
 struct AsyncURB {
c8dfc65
-    USBRedirDevice *dev;
c8dfc65
     USBPacket *packet;
c8dfc65
     uint32_t packet_id;
c8dfc65
     QTAILQ_ENTRY(AsyncURB)next;
c8dfc65
@@ -255,7 +254,6 @@ static int usbredir_write(void *priv, uint8_t *data, int count)
c8dfc65
 static AsyncURB *async_alloc(USBRedirDevice *dev, USBPacket *p)
c8dfc65
 {
c8dfc65
     AsyncURB *aurb = (AsyncURB *) g_malloc0(sizeof(AsyncURB));
c8dfc65
-    aurb->dev = dev;
c8dfc65
     aurb->packet = p;
c8dfc65
     aurb->packet_id = dev->packet_id;
c8dfc65
     QTAILQ_INSERT_TAIL(&dev->asyncq, aurb, next);
c8dfc65
-- 
c8dfc65
1.7.12
c8dfc65