mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: remove useless error check
Excerpt from the virCommandAddArgBuffer() description: "Correctly transfers memory errors or contents from buf to cmd." Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
cee22001d3
commit
92ff464bbb
@ -6412,9 +6412,6 @@ qemuBuildNumaArgStr(const virDomainDef *def, virCommandPtr cmd)
|
|||||||
virBufferAdd(&buf, cpumask, -1);
|
virBufferAdd(&buf, cpumask, -1);
|
||||||
virBufferAsprintf(&buf, ",mem=%d", cellmem);
|
virBufferAsprintf(&buf, ",mem=%d", cellmem);
|
||||||
|
|
||||||
if (virBufferCheckError(&buf) < 0)
|
|
||||||
goto cleanup;
|
|
||||||
|
|
||||||
virCommandAddArgBuffer(cmd, &buf);
|
virCommandAddArgBuffer(cmd, &buf);
|
||||||
}
|
}
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user