dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0146-usb-redir-Get-rid-of-unused-async-struct-dev-member.patch

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