Skip to content

Commit

Permalink
start: remove unnecessary check for valid cgroup_ops
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Mar 31, 2020
1 parent c51c757 commit 52520e4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lxc/start.c
Expand Up @@ -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.
Expand Down

0 comments on commit 52520e4

Please sign in to comment.