提交 7c6733a2 编写于 作者: J Ján Tomko

Return void in qemuDomainAssignARMVirtioMMIOAddresses

This function does not fail and it does not need to return anything.
上级 ef0f90d1
...@@ -398,7 +398,7 @@ qemuDomainAssignS390Addresses(virDomainDefPtr def, ...@@ -398,7 +398,7 @@ qemuDomainAssignS390Addresses(virDomainDefPtr def,
} }
static int static void
qemuDomainAssignARMVirtioMMIOAddresses(virDomainDefPtr def, qemuDomainAssignARMVirtioMMIOAddresses(virDomainDefPtr def,
virQEMUCapsPtr qemuCaps) virQEMUCapsPtr qemuCaps)
{ {
...@@ -411,7 +411,6 @@ qemuDomainAssignARMVirtioMMIOAddresses(virDomainDefPtr def, ...@@ -411,7 +411,6 @@ qemuDomainAssignARMVirtioMMIOAddresses(virDomainDefPtr def,
qemuDomainPrimeVirtioDeviceAddresses( qemuDomainPrimeVirtioDeviceAddresses(
def, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO); def, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_MMIO);
} }
return 0;
} }
...@@ -1659,9 +1658,7 @@ qemuDomainAssignAddresses(virDomainDefPtr def, ...@@ -1659,9 +1658,7 @@ qemuDomainAssignAddresses(virDomainDefPtr def,
if (rc) if (rc)
return rc; return rc;
rc = qemuDomainAssignARMVirtioMMIOAddresses(def, qemuCaps); qemuDomainAssignARMVirtioMMIOAddresses(def, qemuCaps);
if (rc)
return rc;
return qemuDomainAssignPCIAddresses(def, qemuCaps, obj); return qemuDomainAssignPCIAddresses(def, qemuCaps, obj);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册