mirror of https://github.com/xqemu/xqemu.git
usb-redir: Get rid of unused async-struct dev member
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>
This commit is contained in:
parent
104981d52b
commit
206e7f20fe
|
@ -96,7 +96,6 @@ struct USBRedirDevice {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AsyncURB {
|
struct AsyncURB {
|
||||||
USBRedirDevice *dev;
|
|
||||||
USBPacket *packet;
|
USBPacket *packet;
|
||||||
uint32_t packet_id;
|
uint32_t packet_id;
|
||||||
QTAILQ_ENTRY(AsyncURB)next;
|
QTAILQ_ENTRY(AsyncURB)next;
|
||||||
|
@ -245,7 +244,6 @@ static int usbredir_write(void *priv, uint8_t *data, int count)
|
||||||
static AsyncURB *async_alloc(USBRedirDevice *dev, USBPacket *p)
|
static AsyncURB *async_alloc(USBRedirDevice *dev, USBPacket *p)
|
||||||
{
|
{
|
||||||
AsyncURB *aurb = (AsyncURB *) g_malloc0(sizeof(AsyncURB));
|
AsyncURB *aurb = (AsyncURB *) g_malloc0(sizeof(AsyncURB));
|
||||||
aurb->dev = dev;
|
|
||||||
aurb->packet = p;
|
aurb->packet = p;
|
||||||
aurb->packet_id = dev->packet_id;
|
aurb->packet_id = dev->packet_id;
|
||||||
QTAILQ_INSERT_TAIL(&dev->asyncq, aurb, next);
|
QTAILQ_INSERT_TAIL(&dev->asyncq, aurb, next);
|
||||||
|
|
Loading…
Reference in New Issue