提交 fa7e8bb8 编写于 作者: P Peter Krempa

conf: turn virDomainMemtuneFormat void

Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 a06c856d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册