From d3f0d7bbaefd3465e95da2500640732a5cc8bedf Mon Sep 17 00:00:00 2001 From: Li kunyu Date: Tue, 20 Feb 2024 13:24:26 +0800 Subject: 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 Link: https://lore.kernel.org/r/20240220052426.62018-1-kunyu@nfschina.com Signed-off-by: Kees Cook --- fs/exec.c | 1 - 1 file changed, 1 deletion(-) (limited to 'fs/exec.c') diff --git a/fs/exec.c b/fs/exec.c index af4fbb61cd53..715e1a8aa4f0 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1747,7 +1747,6 @@ int remove_arg_zero(struct linux_binprm *bprm) bprm->p++; bprm->argc--; - ret = 0; out: return ret; -- cgit v1.2.3