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:
parent
15fd1dc3da
commit
d3f0d7bbae
@ -1747,7 +1747,6 @@ int remove_arg_zero(struct linux_binprm *bprm)
|
||||
|
||||
bprm->p++;
|
||||
bprm->argc--;
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
return ret;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user