From patchwork Mon Jul 4 15:33:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 103131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2F07FB6F00 for ; Tue, 5 Jul 2011 02:04:43 +1000 (EST) Received: from localhost ([::1]:34657 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdldW-0003wW-K1 for incoming@patchwork.ozlabs.org; Mon, 04 Jul 2011 12:04:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdlAZ-0005OP-GH for qemu-devel@nongnu.org; Mon, 04 Jul 2011 11:34:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdlAX-0001I8-Uv for qemu-devel@nongnu.org; Mon, 04 Jul 2011 11:34:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdlAX-0001Hy-HD for qemu-devel@nongnu.org; Mon, 04 Jul 2011 11:34:41 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p64FYb6s029379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 4 Jul 2011 11:34:37 -0400 Received: from red-feather.redhat.com (ovpn-113-45.phx2.redhat.com [10.3.113.45]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p64FYaLn000841; Mon, 4 Jul 2011 11:34:36 -0400 From: Jes.Sorensen@redhat.com To: anthony@codemonkey.ws Date: Mon, 4 Jul 2011 17:33:05 +0200 Message-Id: <1309793585-30292-1-git-send-email-Jes.Sorensen@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: kraxel@redhat.com, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 1/1] usb_register_port(): do not set port->opaque and port->index twice X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Jes Sorensen Signed-off-by: Jes Sorensen --- 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);