]> git.proxmox.com Git - qemu.git/commitdiff
usb_register_port(): do not set port->opaque and port->index twice
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 4 Jul 2011 15:33:05 +0000 (17:33 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Jul 2011 09:26:10 +0000 (11:26 +0200)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-bus.c

index c8347e9e3bc03bc9b1e8b837d0a13dd1ff4d6f59..f1dd55eccdabf79beccf675cddfbf204bdd483a7 100644 (file)
@@ -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;