From: Christian Brauner Date: Fri, 29 Jan 2021 13:27:07 +0000 (+0100) Subject: attach: remove unneeded assignment X-Git-Tag: lxc-5.0.0~313^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a24f14edfae62082caf72bd1e2b14701201e52d;p=thirdparty%2Flxc.git attach: remove unneeded assignment Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 2aa963104..35c831002 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -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);