conf: turn virDomainMemtuneFormat void

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-10-30 12:09:34 +01:00
parent a06c856d43
commit fa7e8bb824

View File

@ -27953,12 +27953,11 @@ virDomainIOMMUDefFormat(virBufferPtr buf,
} }
static int static void
virDomainMemtuneFormat(virBufferPtr buf, virDomainMemtuneFormat(virBufferPtr buf,
const virDomainMemtune *mem) const virDomainMemtune *mem)
{ {
g_auto(virBuffer) childBuf = VIR_BUFFER_INITIALIZER; g_auto(virBuffer) childBuf = VIR_BUFFER_INITIALIZER;
int ret = -1;
virBufferSetChildIndent(&childBuf, buf); virBufferSetChildIndent(&childBuf, buf);
@ -27984,9 +27983,6 @@ virDomainMemtuneFormat(virBufferPtr buf,
} }
virXMLFormatElement(buf, "memtune", NULL, &childBuf); virXMLFormatElement(buf, "memtune", NULL, &childBuf);
ret = 0;
return ret;
} }
@ -28489,9 +28485,7 @@ virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
if (virDomainDefFormatBlkiotune(buf, def) < 0) if (virDomainDefFormatBlkiotune(buf, def) < 0)
goto error; goto error;
if (virDomainMemtuneFormat(buf, &def->mem) < 0) virDomainMemtuneFormat(buf, &def->mem);
goto error;
virDomainMemorybackingFormat(buf, &def->mem); virDomainMemorybackingFormat(buf, &def->mem);
if (virDomainCpuDefFormat(buf, def) < 0) if (virDomainCpuDefFormat(buf, def) < 0)