Commit d3f0d7bb authored by Li kunyu's avatar Li kunyu Committed by Kees Cook
Browse files

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: default avatarLi kunyu <kunyu@nfschina.com>
Link: https://lore.kernel.org/r/20240220052426.62018-1-kunyu@nfschina.com


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 15fd1dc3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1747,7 +1747,6 @@ int remove_arg_zero(struct linux_binprm *bprm)

	bprm->p++;
	bprm->argc--;
	ret = 0;

out:
	return ret;