domain_conf: make virDomainIOMMUDefFormat() void

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>
This commit is contained in:
Matt Coleman 2020-11-05 22:32:51 -05:00 committed by Michal Privoznik
parent dca92b2203
commit a252153391

View File

@ -29372,7 +29372,7 @@ virDomainDefIothreadShouldFormat(virDomainDefPtr def)
}
static int
static void
virDomainIOMMUDefFormat(virBufferPtr buf,
const virDomainIOMMUDef *iommu)
{
@ -29407,8 +29407,6 @@ virDomainIOMMUDefFormat(virBufferPtr buf,
virDomainIOMMUModelTypeToString(iommu->model));
virXMLFormatElement(buf, "iommu", &attrBuf, &childBuf);
return 0;
}
@ -30384,9 +30382,8 @@ virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
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)