2012-10-28 18:05:07 +00:00
|
|
|
From 008e2fcbeea527c3aff3078ed5a178d59757bc28 Mon Sep 17 00:00:00 2001
|
2012-09-07 15:20:05 +00:00
|
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
|
|
Date: Tue, 28 Aug 2012 09:08:45 +0200
|
2012-10-28 18:05:07 +00:00
|
|
|
Subject: [PATCH] usb-redir: Get rid of unused async-struct dev member
|
2012-09-07 15:20:05 +00:00
|
|
|
|
|
|
|
This is a preparation patch for completely getting rid of the async-packet
|
|
|
|
struct in usb-redir, instead relying on the (new) per ep queues in the
|
|
|
|
qemu usb core.
|
|
|
|
|
|
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
2012-10-28 18:05:07 +00:00
|
|
|
(cherry picked from commit 206e7f20fe7b920b362bcc02608680c5d5527f2a)
|
|
|
|
|
|
|
|
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
2012-09-07 15:20:05 +00:00
|
|
|
---
|
|
|
|
hw/usb/redirect.c | 2 --
|
|
|
|
1 file changed, 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
|
2012-10-28 18:05:07 +00:00
|
|
|
index e4ef372..6593d50 100644
|
2012-09-07 15:20:05 +00:00
|
|
|
--- a/hw/usb/redirect.c
|
|
|
|
+++ b/hw/usb/redirect.c
|
|
|
|
@@ -96,7 +96,6 @@ struct USBRedirDevice {
|
|
|
|
};
|
|
|
|
|
|
|
|
struct AsyncURB {
|
|
|
|
- USBRedirDevice *dev;
|
|
|
|
USBPacket *packet;
|
|
|
|
uint32_t packet_id;
|
|
|
|
QTAILQ_ENTRY(AsyncURB)next;
|
2012-10-28 18:05:07 +00:00
|
|
|
@@ -245,7 +244,6 @@ static int usbredir_write(void *priv, uint8_t *data, int count)
|
2012-09-07 15:20:05 +00:00
|
|
|
static AsyncURB *async_alloc(USBRedirDevice *dev, USBPacket *p)
|
|
|
|
{
|
|
|
|
AsyncURB *aurb = (AsyncURB *) g_malloc0(sizeof(AsyncURB));
|
|
|
|
- aurb->dev = dev;
|
|
|
|
aurb->packet = p;
|
|
|
|
aurb->packet_id = dev->packet_id;
|
|
|
|
QTAILQ_INSERT_TAIL(&dev->asyncq, aurb, next);
|