This function always returns zero, so it might as well be void.
Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
}
-static int
+static void
virDomainIOMMUDefFormat(virBufferPtr buf,
const virDomainIOMMUDef *iommu)
{
virDomainIOMMUModelTypeToString(iommu->model));
virXMLFormatElement(buf, "iommu", &attrBuf, &childBuf);
-
- return 0;
}
return -1;
}
- if (def->iommu &&
- virDomainIOMMUDefFormat(buf, def->iommu) < 0)
- return -1;
+ if (def->iommu)
+ virDomainIOMMUDefFormat(buf, def->iommu);
if (def->vsock &&
virDomainVsockDefFormat(buf, def->vsock) < 0)