summaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorLi kunyu <kunyu@nfschina.com>2024-02-20 06:24:26 +0100
committerKees Cook <keescook@chromium.org>2024-02-24 02:07:31 +0100
commitd3f0d7bbaefd3465e95da2500640732a5cc8bedf (patch)
treefa1047ba1509bcca627f486b85790f2c0437d128 /fs/exec.c
parentfs: binfmt_elf_efpic: don't use missing interpreter's properties (diff)
downloadlinux-d3f0d7bbaefd3465e95da2500640732a5cc8bedf.tar.xz
linux-d3f0d7bbaefd3465e95da2500640732a5cc8bedf.zip
exec: Delete unnecessary statements in remove_arg_zero()
'ret=0; ' In actual operation, the ret was not modified, so this sentence can be removed. Signed-off-by: Li kunyu <kunyu@nfschina.com> Link: https://lore.kernel.org/r/20240220052426.62018-1-kunyu@nfschina.com Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/exec.c b/fs/exec.c
index af4fbb61cd53..715e1a8aa4f0 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1747,7 +1747,6 @@ int remove_arg_zero(struct linux_binprm *bprm)
bprm->p++;
bprm->argc--;
- ret = 0;
out:
return ret;