[libvirt] [PATCH v2 3/4] Revert "lxc_cgroup: Add check for NULL cgroup before AddTask call"

John Ferlan jferlan at redhat.com
Thu Jan 14 16:21:28 UTC 2016


This reverts commit ae09988eb787df63d3bb298f713a3bbd77275901.

Since commit id '71ce4759' has been reverted, this one is no
longer necessary.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/lxc/lxc_cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c
index 8f78d24..ad254e4 100644
--- a/src/lxc/lxc_cgroup.c
+++ b/src/lxc/lxc_cgroup.c
@@ -501,7 +501,7 @@ virCgroupPtr virLXCCgroupCreate(virDomainDefPtr def,
                             nnicindexes, nicindexes,
                             def->resource->partition,
                             -1,
-                            &cgroup) < 0 || !cgroup)
+                            &cgroup) < 0)
         goto cleanup;
 
     /* setup control group permissions for user namespace */
-- 
2.5.0




More information about the libvir-list mailing list