mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
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:
parent
a06c856d43
commit
fa7e8bb824
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user