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>
This commit is contained in:
Li kunyu 2024-02-20 13:24:26 +08:00 committed by Kees Cook
parent 15fd1dc3da
commit d3f0d7bbae
1 changed files with 0 additions and 1 deletions

View File

@ -1747,7 +1747,6 @@ int remove_arg_zero(struct linux_binprm *bprm)
bprm->p++;
bprm->argc--;
ret = 0;
out:
return ret;