From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDdYm-0000dm-QV for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:02:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDdYf-0000VB-9j for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:02:38 -0400 Received: from [199.232.76.173] (port=35592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDdYe-0000Uf-P5 for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:02:32 -0400 Received: from mx2.redhat.com ([66.187.237.31]:57164) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDdYe-0003jq-3G for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:02:32 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n58C2UtF025911 for ; Mon, 8 Jun 2009 08:02:30 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n58C2UQG026770 for ; Mon, 8 Jun 2009 08:02:30 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n58C2Tve012523 for ; Mon, 8 Jun 2009 08:02:29 -0400 Date: Mon, 8 Jun 2009 15:02:29 +0300 From: Gleb Natapov Message-ID: <20090608120229.GD27210@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] remove unused field from pci device. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Gleb Natapov diff --git a/hw/pci.c b/hw/pci.c index 0ab5b94..02b335f 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -268,7 +268,7 @@ static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, config_write = pci_default_write_config; pci_dev->config_read = config_read; pci_dev->config_write = config_write; - pci_dev->irq_index = pci_irq_index++; + pci_irq_index++; bus->devices[devfn] = pci_dev; pci_dev->irq = qemu_allocate_irqs(pci_set_irq, pci_dev, 4); return pci_dev; diff --git a/hw/pci.h b/hw/pci.h index 0405837..fb7b89a 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -154,8 +154,6 @@ struct PCIDevice { PCIConfigReadFunc *config_read; PCIConfigWriteFunc *config_write; PCIUnregisterFunc *unregister; - /* ??? This is a PC-specific hack, and should be removed. */ - int irq_index; /* IRQ objects for the INTA-INTD pins. */ qemu_irq *irq; -- Gleb.