From: Christian Brauner Date: Mon, 30 Mar 2020 20:26:10 +0000 (+0200) Subject: start: remove unnecessary check for valid cgroup_ops X-Git-Tag: lxc-5.0.0~477^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52520e4f793f73e5956c2d9de9c83f074622ce1d;p=thirdparty%2Flxc.git start: remove unnecessary check for valid cgroup_ops Signed-off-by: Christian Brauner --- diff --git a/src/lxc/start.c b/src/lxc/start.c index 328516c97..5f70bf237 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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.