]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: remove unneeded assignment
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 29 Jan 2021 13:27:07 +0000 (14:27 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 29 Jan 2021 13:27:24 +0000 (14:27 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 2aa963104981f24547cc69f15d4cbb84772ff6f3..35c83100245123497f803bdb31a5a6f71636e307 100644 (file)
@@ -1372,7 +1372,6 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function,
                __do_close int labelfd = -EBADF;
                bool on_exec;
 
-               ret = -1;
                on_exec = options->attach_flags & LXC_ATTACH_LSM_EXEC ? true : false;
                labelfd = ctx->lsm_ops->process_label_fd_get(ctx->lsm_ops,
                                                             attached_pid, on_exec);