]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
start: remove unnecessary check for valid cgroup_ops
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 30 Mar 2020 20:26:10 +0000 (22:26 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 31 Mar 2020 11:52:59 +0000 (13:52 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/start.c

index 328516c976416d76012b317442cc3f1c2b73a882..5f70bf2379f01429172628b16021d2055369df82 100644 (file)
@@ -933,10 +933,8 @@ void lxc_end(struct lxc_handler *handler)
 
        lsm_process_cleanup(handler->conf, handler->lxcpath);
 
-       if (cgroup_ops) {
-               cgroup_ops->payload_destroy(cgroup_ops, handler);
-               cgroup_ops->monitor_destroy(cgroup_ops, handler);
-       }
+       cgroup_ops->payload_destroy(cgroup_ops, handler);
+       cgroup_ops->monitor_destroy(cgroup_ops, handler);
 
        if (handler->conf->reboot == REBOOT_NONE) {
                /* For all new state clients simply close the command socket.