[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 05a9169] Unbreak USB autoconnect filters

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 05a9169] Unbreak USB autoconnect filters
Date: Thu, 08 Oct 2009 02:59:25 -0000

From: Markus Armbruster <address@hidden>

Commit 22f84e73 added a qdev_init() missing on the path through
usb_host_device_open(), but that broke the path through
usb_host_auto_scan(), which already had one.  Remove that one.

Patchworks-ID: 35169
Signed-off-by: Markus Armbruster <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/usb-linux.c b/usb-linux.c
index 2b7b092..77cbf1b 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -1396,8 +1396,6 @@ static int usb_host_auto_scan(void *opaque, int bus_num, 
int addr,
         dprintf("husb: auto open: bus_num %d addr %d\n", bus_num, addr);
        dev = usb_host_device_open_addr(bus_num, addr, product_name);
-       if (dev)
-            qdev_init(&dev->qdev);
     return 0;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]