From: Luyao Huang Date: Fri, 14 Aug 2015 06:59:54 +0000 (+0800) Subject: qemuDomainAddCgroupForThread: Don't overwrite the error X-Git-Tag: v1.2.19-rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4153a7410574b07657704afc948dfbf6bf74eab6;p=thirdparty%2Flibvirt.git qemuDomainAddCgroupForThread: Don't overwrite the error 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 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 083e4ff823..5f35cf8644 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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; }