diff options
author | Cao jin <caoj.fnst@cn.fujitsu.com> | 2016-01-15 10:23:32 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:28 -0600 |
commit | 632185baddc2cad3570d216241dbe8172d77cef6 (patch) | |
tree | 53bfba9e3ae481681ab346dfe5c3ab9ba813da22 /hw/pci-bridge/ioh3420.c | |
parent | 2271297606884b9b4233e13c939f49a20093162e (diff) | |
download | hqemu-632185baddc2cad3570d216241dbe8172d77cef6.zip hqemu-632185baddc2cad3570d216241dbe8172d77cef6.tar.gz |
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>
Diffstat (limited to 'hw/pci-bridge/ioh3420.c')
-rw-r--r-- | hw/pci-bridge/ioh3420.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/pci-bridge/ioh3420.c b/hw/pci-bridge/ioh3420.c index 8ac4240..9e048eb 100644 --- a/hw/pci-bridge/ioh3420.c +++ b/hw/pci-bridge/ioh3420.c @@ -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, |