[PATCH v3 02/16] qemu: remove useless error check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Excerpt from the virCommandAddArgBuffer() description: "Correctly
transfers memory errors or contents from buf to cmd."

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 src/qemu/qemu_command.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 4307f1f..9fc0778 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -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;
-- 
2.0.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]