mirror of https://github.com/xemu-project/xemu.git
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:
parent
76f30473da
commit
eb3b58f96f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue