mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
change type of pci_bridge_initfn() to void
Since it can`t fail. Also modify the callers. Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
This commit is contained in:
parent
33c28f3bde
commit
9cfaa0079f
8 changed files with 10 additions and 33 deletions
|
@ -98,11 +98,7 @@ static int ioh3420_initfn(PCIDevice *d)
|
|||
PCIESlot *s = PCIE_SLOT(d);
|
||||
int rc;
|
||||
|
||||
rc = pci_bridge_initfn(d, TYPE_PCIE_BUS);
|
||||
if (rc < 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
pci_bridge_initfn(d, TYPE_PCIE_BUS);
|
||||
pcie_port_init_reg(d);
|
||||
|
||||
rc = pci_bridge_ssvid_init(d, IOH_EP_SSVID_OFFSET,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue