Unverified Commit 46340ce2 by Christian Brauner Committed by Stéphane Graber

start: remove unnecessary check for valid cgroup_ops

parent 179e2bf8
...@@ -933,10 +933,8 @@ void lxc_end(struct lxc_handler *handler) ...@@ -933,10 +933,8 @@ void lxc_end(struct lxc_handler *handler)
lsm_process_cleanup(handler->conf, handler->lxcpath); lsm_process_cleanup(handler->conf, handler->lxcpath);
if (cgroup_ops) { cgroup_ops->payload_destroy(cgroup_ops, handler);
cgroup_ops->payload_destroy(cgroup_ops, handler); cgroup_ops->monitor_destroy(cgroup_ops, handler);
cgroup_ops->monitor_destroy(cgroup_ops, handler);
}
if (handler->conf->reboot == REBOOT_NONE) { if (handler->conf->reboot == REBOOT_NONE) {
/* For all new state clients simply close the command socket. /* For all new state clients simply close the command socket.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment