From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4q6-0000PD-N2 for qemu-devel@nongnu.org; Mon, 07 Oct 2013 03:02:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VT4q0-0006nq-NL for qemu-devel@nongnu.org; Mon, 07 Oct 2013 03:02:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VT4q0-0006nj-FZ for qemu-devel@nongnu.org; Mon, 07 Oct 2013 03:02:40 -0400 Message-ID: <1381129345.13574.6.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 07 Oct 2013 09:02:25 +0200 In-Reply-To: <1380717694-13091-8-git-send-email-marcel.a@redhat.com> References: <1380717694-13091-1-git-send-email-marcel.a@redhat.com> <1380717694-13091-8-git-send-email-marcel.a@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC v2 7/9] hw: set interrupts using pci irq wrappers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: kwolf@redhat.com, peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, anthony@codemonkey.ws, mst@redhat.com, sw@weilnetz.de, jasowang@redhat.com, qemu-devel@nongnu.org, dkoch@verizon.com, keith.busch@intel.com, alex.williamson@redhat.com, stefanha@redhat.com, dmitry@daynix.com, pbonzini@redhat.com, afaerber@suse.de, ehabkost@redhat.com On Mi, 2013-10-02 at 15:41 +0300, Marcel Apfelbaum wrote: > --- a/hw/usb/hcd-uhci.c > +++ b/hw/usb/hcd-uhci.c > @@ -381,7 +381,7 @@ static void uhci_update_irq(UHCIState *s) > } else { > level = 0; > } > - qemu_set_irq(s->dev.irq[s->irq_pin], level); > + pci_set_irq(&s->dev, level); > } > > static void uhci_reset(void *opaque) That renders s->irq_pin unused. You can drop the struct member and the initialization code for it. cheers, Gerd