提交 92ff464b 编写于 作者: M Martin Kletzander

qemu: remove useless error check

Excerpt from the virCommandAddArgBuffer() description: "Correctly
transfers memory errors or contents from buf to cmd."
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 cee22001
......@@ -6412,9 +6412,6 @@ qemuBuildNumaArgStr(const virDomainDef *def, virCommandPtr cmd)
virBufferAdd(&buf, cpumask, -1);
virBufferAsprintf(&buf, ",mem=%d", cellmem);
if (virBufferCheckError(&buf) < 0)
goto cleanup;
virCommandAddArgBuffer(cmd, &buf);
}
ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册