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>
This commit is contained in:
parent
2b75f84823
commit
3dbc01ae87
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user