summaryrefslogtreecommitdiffstats
path: root/hw/pci-bridge/i82801b11.c
diff options
context:
space:
mode:
authorCao jin2016-01-15 03:23:32 +0100
committerMichael S. Tsirkin2016-02-16 11:05:18 +0100
commit9cfaa0079f5053683c6a632070244c35fa319549 (patch)
tree35b102805713f5f9fc679440c42ee21c58e3566c /hw/pci-bridge/i82801b11.c
parentdec: convert to realize() (diff)
downloadqemu-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/i82801b11.c')
-rw-r--r--hw/pci-bridge/i82801b11.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/pci-bridge/i82801b11.c b/hw/pci-bridge/i82801b11.c
index b143f8cb79..5c40708ba8 100644
--- a/hw/pci-bridge/i82801b11.c
+++ b/hw/pci-bridge/i82801b11.c
@@ -62,10 +62,7 @@ static int i82801b11_bridge_initfn(PCIDevice *d)
{
int rc;
- rc = pci_bridge_initfn(d, TYPE_PCI_BUS);
- if (rc < 0) {
- return rc;
- }
+ pci_bridge_initfn(d, TYPE_PCI_BUS);
rc = pci_bridge_ssvid_init(d, I82801ba_SSVID_OFFSET,
I82801ba_SSVID_SVID, I82801ba_SSVID_SSID);