summaryrefslogtreecommitdiff
path: root/hw/pci/pci.c
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2016-01-27 18:29:01 +0800
committerMichael S. Tsirkin <mst@redhat.com>2016-02-25 13:14:18 +0200
commit3dbc01ae8760c24144718210644a30a62a9ca7a9 (patch)
tree9d48953f21b7f88de4ec6f2bc61da51c9fa44d67 /hw/pci/pci.c
parent2b75f848238651ef1bb407f66fa38d68775782bf (diff)
downloadqemu-3dbc01ae8760c24144718210644a30a62a9ca7a9.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>
Diffstat (limited to 'hw/pci/pci.c')
-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)