]> xenbits.xensource.com Git - libvirt.git/commitdiff
Revert "lxc_cgroup: Add check for NULL cgroup before AddTask call"
authorJohn Ferlan <jferlan@redhat.com>
Thu, 14 Jan 2016 16:01:50 +0000 (11:01 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 14 Jan 2016 16:01:50 +0000 (11:01 -0500)
This reverts commit ae09988eb787df63d3bb298f713a3bbd77275901.

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

src/lxc/lxc_cgroup.c

index 8f78d24b837e56b950503292892673e65d813c38..ad254e4934fca9a2b9c1d95aae83822030e98803 100644 (file)
@@ -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 */