From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYtyP-00050A-LA for qemu-devel@nongnu.org; Thu, 25 Feb 2016 06:20:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYtyL-0005YS-NW for qemu-devel@nongnu.org; Thu, 25 Feb 2016 06:20:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYtyK-0005YI-V2 for qemu-devel@nongnu.org; Thu, 25 Feb 2016 06:20:41 -0500 Date: Thu, 25 Feb 2016 13:20:37 +0200 From: "Michael S. Tsirkin" Message-ID: <1456399032-6172-7-git-send-email-mst@redhat.com> References: <1456399032-6172-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1456399032-6172-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL v3 06/21] pci core: function pci_host_bus_register() cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Cao jin , Eduardo Habkost From: Cao jin remove unused param, and rename the other to a meaningful one. Signed-off-by: Cao jin Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Eduardo Habkost --- hw/pci/pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index b282120..b071361 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -278,9 +278,9 @@ static void pcibus_reset(BusState *qbus) } } -static void pci_host_bus_register(PCIBus *bus, DeviceState *parent) +static void pci_host_bus_register(DeviceState *host) { - PCIHostState *host_bridge = PCI_HOST_BRIDGE(parent); + PCIHostState *host_bridge = PCI_HOST_BRIDGE(host); QLIST_INSERT_HEAD(&pci_host_bridges, host_bridge, next); } @@ -344,7 +344,7 @@ static void pci_bus_init(PCIBus *bus, DeviceState *parent, /* host bridge */ QLIST_INIT(&bus->child); - pci_host_bus_register(bus, parent); + pci_host_bus_register(parent); } bool pci_bus_is_express(PCIBus *bus) -- MST