diff options
author | Cao jin | 2016-01-15 03:23:32 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2016-02-16 11:05:18 +0100 |
commit | 9cfaa0079f5053683c6a632070244c35fa319549 (patch) | |
tree | 35b102805713f5f9fc679440c42ee21c58e3566c /hw/pci-bridge/xio3130_upstream.c | |
parent | dec: convert to realize() (diff) | |
download | qemu-9cfaa0079f5053683c6a632070244c35fa319549.tar.gz qemu-9cfaa0079f5053683c6a632070244c35fa319549.tar.xz qemu-9cfaa0079f5053683c6a632070244c35fa319549.zip |
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/xio3130_upstream.c')
-rw-r--r-- | hw/pci-bridge/xio3130_upstream.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/pci-bridge/xio3130_upstream.c b/hw/pci-bridge/xio3130_upstream.c index 7d255a6d52..19798c09a8 100644 --- a/hw/pci-bridge/xio3130_upstream.c +++ b/hw/pci-bridge/xio3130_upstream.c @@ -57,11 +57,7 @@ static int xio3130_upstream_initfn(PCIDevice *d) PCIEPort *p = PCIE_PORT(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 = msi_init(d, XIO3130_MSI_OFFSET, XIO3130_MSI_NR_VECTOR, |