From: Cao jin Date: Wed, 27 Jan 2016 10:29:01 +0000 (+0800) Subject: pci core: function pci_host_bus_register() cleanup X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3dbc01ae8760c24144718210644a30a62a9ca7a9;p=qemu.git pci core: function pci_host_bus_register() cleanup 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 --- diff --git a/hw/pci/pci.c b/hw/pci/pci.c index b282120b12..b071361f81 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)