diff --git a/hw/usb-bus.c b/hw/usb-bus.c index c8347e9e3b..f1dd55eccd 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -141,8 +141,6 @@ USBDevice *usb_create_simple(USBBus *bus, const char *name) static void usb_fill_port(USBPort *port, void *opaque, int index, USBPortOps *ops, int speedmask) { - port->opaque = opaque; - port->index = index; port->opaque = opaque; port->index = index; port->ops = ops;