summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2016-01-27 18:29:01 +0800
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:58 -0600
commitc35c75428005a984016824d63d5bd548d31ac625 (patch)
treeb36ca1733f2739c6d9d07a0bfcbceb1d2e3761dd
parentc2c4a319ab4a62cda41ea04e5bbe1335325157a3 (diff)
downloadhqemu-c35c75428005a984016824d63d5bd548d31ac625.zip
hqemu-c35c75428005a984016824d63d5bd548d31ac625.tar.gz
pci core: function pci_host_bus_register() cleanup
remove unused param, and rename the other to a meaningful one. Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r--hw/pci/pci.c6
1 files 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)
OpenPOWER on IntegriCloud