From: Jes Sorensen Date: Mon, 4 Jul 2011 15:33:05 +0000 (+0200) Subject: usb_register_port(): do not set port->opaque and port->index twice X-Git-Tag: v0.15.0-rc0~62^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb3b58f96f6740ab1cc64ba514367ce1814779e4;p=thirdparty%2Fqemu.git usb_register_port(): do not set port->opaque and port->index twice Signed-off-by: Jes Sorensen Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb-bus.c b/hw/usb-bus.c index c8347e9e3bc..f1dd55eccda 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;