git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15fd1dc
)
exec: Delete unnecessary statements in remove_arg_zero()
author
Li kunyu
<kunyu@nfschina.com>
Tue, 20 Feb 2024 05:24:26 +0000
(13:24 +0800)
committer
Kees Cook
<keescook@chromium.org>
Sat, 24 Feb 2024 01:07:31 +0000
(17:07 -0800)
'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>
fs/exec.c
patch
|
blob
|
history
diff --git
a/fs/exec.c
b/fs/exec.c
index af4fbb61cd53e97c788387a0d8277d1ce5495d7d..715e1a8aa4f08580dd9baf775244f60c9645f39b 100644
(file)
--- 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;