qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/1] usb_register_port(): do not set port->opaque and port->index twice
@ 2011-07-04 15:33 Jes.Sorensen
  2011-07-04 15:44 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Jes.Sorensen @ 2011-07-04 15:33 UTC (permalink / raw)
  To: anthony; +Cc: kraxel, qemu-devel

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 hw/usb-bus.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/hw/usb-bus.c b/hw/usb-bus.c
index 2abce12..6e082ab 100644
--- a/hw/usb-bus.c
+++ b/hw/usb-bus.c
@@ -145,8 +145,6 @@ void usb_register_port(USBBus *bus, USBPort *port, void *opaque, int index,
 {
     port->opaque = opaque;
     port->index = index;
-    port->opaque = opaque;
-    port->index = index;
     port->ops = ops;
     port->speedmask = speedmask;
     QTAILQ_INSERT_TAIL(&bus->free, port, next);
-- 
1.7.4.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH 1/1] usb_register_port(): do not set port->opaque and port->index twice
  2011-07-04 15:33 [Qemu-devel] [PATCH 1/1] usb_register_port(): do not set port->opaque and port->index twice Jes.Sorensen
@ 2011-07-04 15:44 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2011-07-04 15:44 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: qemu-devel

>       port->opaque = opaque;
>       port->index = index;
> -    port->opaque = opaque;
> -    port->index = index;

Added to usb patch queue.

thanks,
   Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-04 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 15:33 [Qemu-devel] [PATCH 1/1] usb_register_port(): do not set port->opaque and port->index twice Jes.Sorensen
2011-07-04 15:44 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).