diff options
author | Cao jin <caoj.fnst@cn.fujitsu.com> | 2016-01-27 18:29:02 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-02-25 13:14:18 +0200 |
commit | 9ae91bc43f94d9b004b17f7213ef1b8d5ebe8e1a (patch) | |
tree | c2e1556b71697e0f29487aa217c4aadc2a3e9e43 /hw/pci | |
parent | 3dbc01ae8760c24144718210644a30a62a9ca7a9 (diff) |
pci core: function pci_bus_init() cleanup
remove unused param
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')
-rw-r--r-- | hw/pci/pci.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/pci/pci.c b/hw/pci/pci.c index b071361f81..e67664deb3 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -331,7 +331,6 @@ const char *pci_root_bus_path(PCIDevice *dev) } static void pci_bus_init(PCIBus *bus, DeviceState *parent, - const char *name, MemoryRegion *address_space_mem, MemoryRegion *address_space_io, uint8_t devfn_min) @@ -364,8 +363,7 @@ void pci_bus_new_inplace(PCIBus *bus, size_t bus_size, DeviceState *parent, uint8_t devfn_min, const char *typename) { qbus_create_inplace(bus, bus_size, typename, parent, name); - pci_bus_init(bus, parent, name, address_space_mem, - address_space_io, devfn_min); + pci_bus_init(bus, parent, address_space_mem, address_space_io, devfn_min); } PCIBus *pci_bus_new(DeviceState *parent, const char *name, @@ -376,8 +374,7 @@ PCIBus *pci_bus_new(DeviceState *parent, const char *name, PCIBus *bus; bus = PCI_BUS(qbus_create(typename, parent, name)); - pci_bus_init(bus, parent, name, address_space_mem, - address_space_io, devfn_min); + pci_bus_init(bus, parent, address_space_mem, address_space_io, devfn_min); return bus; } |