render / rpms / qemu

Forked from rpms/qemu 9 months ago
Clone

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

Hans de Goede c8dfc6
From 1b1c99626404328b571e1f6c18b50f9bed9c2e2c 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
Hans de Goede c8dfc6
Subject: [PATCH 321/366] 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>
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
Hans de Goede c8dfc6
index 816a19a..4a23b82 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;
Hans de Goede c8dfc6
@@ -255,7 +254,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
-- 
Hans de Goede c8dfc6
1.7.12
Hans de Goede c8dfc6