summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCao jin2016-01-27 11:29:01 +0100
committerMichael S. Tsirkin2016-02-25 12:14:18 +0100
commit3dbc01ae8760c24144718210644a30a62a9ca7a9 (patch)
tree9d48953f21b7f88de4ec6f2bc61da51c9fa44d67
parentballoon: Use only 'pc-dimm' type dimm for ballooning (diff)
downloadqemu-3dbc01ae8760c24144718210644a30a62a9ca7a9.tar.gz
qemu-3dbc01ae8760c24144718210644a30a62a9ca7a9.tar.xz
qemu-3dbc01ae8760c24144718210644a30a62a9ca7a9.zip
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 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)