From eb3b58f96f6740ab1cc64ba514367ce1814779e4 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Mon, 4 Jul 2011 17:33:05 +0200 Subject: [PATCH] usb_register_port(): do not set port->opaque and port->index twice Signed-off-by: Jes Sorensen Signed-off-by: Gerd Hoffmann --- hw/usb-bus.c | 2 -- 1 file changed, 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 @@ -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;