]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainAddCgroupForThread: Don't overwrite the error
authorLuyao Huang <lhuang@redhat.com>
Fri, 14 Aug 2015 06:59:54 +0000 (14:59 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Aug 2015 17:53:58 +0000 (19:53 +0200)
Just like in commit 704cf06, if virCgroup*() fails, the error is
already reported. There's no need to overwrite the error with a
generic one and possibly hiding the true root cause of the error.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/qemu/qemu_driver.c

index 083e4ff82372ed9ac9b8048b2ec52e0396f3dc81..5f35cf8644c5dcb303d04e9c2d158bb10f41abe6 100644 (file)
@@ -4606,9 +4606,6 @@ qemuDomainAddCgroupForThread(virCgroupPtr cgroup,
     /* Add pid/thread to the cgroup */
     rv = virCgroupAddTask(new_cgroup, pid);
     if (rv < 0) {
-        virReportSystemError(-rv,
-                             _("unable to add id %d task %d to cgroup"),
-                             idx, pid);
         virCgroupRemove(new_cgroup);
         goto error;
     }