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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 15fd1dc commit d3f0d7b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)