summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--hw/usb-bus.c2
1 files changed, 0 insertions, 2 deletions
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
@@ -143,8 +143,6 @@ static void usb_fill_port(USBPort *port, void *opaque, int index,
 {
     port->opaque = opaque;
     port->index = index;
-    port->opaque = opaque;
-    port->index = index;
     port->ops = ops;
     port->speedmask = speedmask;
     usb_port_location(port, NULL, index + 1);