aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@prefeitura.sp.gov.br>2004-07-28 09:14:26 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-28 09:14:26 -0700
commit85bbce6801a7b4863b911f25668fc14fa4486bee (patch)
tree546908cbb4ff3fd3fbabf741ccf946c34e758f05 /kernel
parent8260b06d71c1ccf7e524ade646a6e6461fabe8c1 (diff)
downloadhistory-85bbce6801a7b4863b911f25668fc14fa4486bee.tar.gz
[PATCH] remove dead code from copy_process()
Don't assign to `retval' twice in a row. Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 0cbc27f48033a9..8e28c1fec20265 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -974,7 +974,6 @@ struct task_struct *copy_process(unsigned long clone_flags,
}
#endif
- retval = -ENOMEM;
if ((retval = security_task_alloc(p)))
goto bad_fork_cleanup_policy;
if ((retval = audit_alloc(p)))