Skip to content

Commit d3f0d7b

Browse files
likunyurkees
authored andcommitted
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>
1 parent 15fd1dc commit d3f0d7b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/exec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,6 @@ int remove_arg_zero(struct linux_binprm *bprm)
17471747

17481748
bprm->p++;
17491749
bprm->argc--;
1750-
ret = 0;
17511750

17521751
out:
17531752
return ret;

0 commit comments

Comments
 (0)