Merge "Change requested in launchpad bug #1288352" into 5.0
[packages/centos6/qemu.git] / 0146-usb-redir-Get-rid-of-unused-async-struct-dev-member.patch
1 From 008e2fcbeea527c3aff3078ed5a178d59757bc28 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Tue, 28 Aug 2012 09:08:45 +0200
4 Subject: [PATCH] usb-redir: Get rid of unused async-struct dev member
5
6 This is a preparation patch for completely getting rid of the async-packet
7 struct in usb-redir, instead relying on the (new) per ep queues in the
8 qemu usb core.
9
10 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
11 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
12 (cherry picked from commit 206e7f20fe7b920b362bcc02608680c5d5527f2a)
13
14 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
15 ---
16  hw/usb/redirect.c | 2 --
17  1 file changed, 2 deletions(-)
18
19 diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
20 index e4ef372..6593d50 100644
21 --- a/hw/usb/redirect.c
22 +++ b/hw/usb/redirect.c
23 @@ -96,7 +96,6 @@ struct USBRedirDevice {
24  };
25  
26  struct AsyncURB {
27 -    USBRedirDevice *dev;
28      USBPacket *packet;
29      uint32_t packet_id;
30      QTAILQ_ENTRY(AsyncURB)next;
31 @@ -245,7 +244,6 @@ static int usbredir_write(void *priv, uint8_t *data, int count)
32  static AsyncURB *async_alloc(USBRedirDevice *dev, USBPacket *p)
33  {
34      AsyncURB *aurb = (AsyncURB *) g_malloc0(sizeof(AsyncURB));
35 -    aurb->dev = dev;
36      aurb->packet = p;
37      aurb->packet_id = dev->packet_id;
38      QTAILQ_INSERT_TAIL(&dev->asyncq, aurb, next);
39 -- 
40 1.7.12.1
41