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 <lhuang@redhat.com>
This commit is contained in:
Luyao Huang 2015-08-14 14:59:54 +08:00 committed by Michal Privoznik
parent d5d710a199
commit 4153a74105

View 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;
}