usb_register_port(): do not set port->opaque and port->index twice

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Jes Sorensen 2011-07-04 17:33:05 +02:00 committed by Gerd Hoffmann
parent 76f30473da
commit eb3b58f96f
1 changed files with 0 additions and 2 deletions

View 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;