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,
|
||||
const virDomainMemtune *mem)
|
||||
{
|
||||
g_auto(virBuffer) childBuf = VIR_BUFFER_INITIALIZER;
|
||||
int ret = -1;
|
||||
|
||||
virBufferSetChildIndent(&childBuf, buf);
|
||||
|
||||
@ -27984,9 +27983,6 @@ virDomainMemtuneFormat(virBufferPtr buf,
|
||||
}
|
||||
|
||||
virXMLFormatElement(buf, "memtune", NULL, &childBuf);
|
||||
|
||||
ret = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@ -28489,9 +28485,7 @@ virDomainDefFormatInternalSetRootName(virDomainDefPtr def,
|
||||
if (virDomainDefFormatBlkiotune(buf, def) < 0)
|
||||
goto error;
|
||||
|
||||
if (virDomainMemtuneFormat(buf, &def->mem) < 0)
|
||||
goto error;
|
||||
|
||||
virDomainMemtuneFormat(buf, &def->mem);
|
||||
virDomainMemorybackingFormat(buf, &def->mem);
|
||||
|
||||
if (virDomainCpuDefFormat(buf, def) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user