Every bus creator now sets auto_hub from its own property, or clears it outright, so the value usb_bus_new() leaves there is never read.
Drop the line. A new bus then has no hub unless its controller asks for one. Suggested-by: Gerd Hoffmann <[email protected]> Signed-off-by: Jamin Lin <[email protected]> --- hw/usb/bus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/usb/bus.c b/hw/usb/bus.c index 92f67de4fe..cd587db892 100644 --- a/hw/usb/bus.c +++ b/hw/usb/bus.c @@ -92,7 +92,6 @@ void usb_bus_new(USBBus *bus, size_t bus_size, qbus_set_bus_hotplug_handler(BUS(bus)); bus->ops = ops; bus->busnr = next_usb_bus++; - bus->auto_hub = true; QTAILQ_INIT(&bus->free); QTAILQ_INIT(&bus->used); QTAILQ_INSERT_TAIL(&busses, bus, next); -- 2.43.0
