Commit 85bbce68 authored by Luiz Capitulino's avatar Luiz Capitulino Committed by Linus Torvalds

[PATCH] remove dead code from copy_process()

Don't assign to `retval' twice in a row.
Signed-off-by: default avatarLuiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8260b06d
...@@ -974,7 +974,6 @@ struct task_struct *copy_process(unsigned long clone_flags, ...@@ -974,7 +974,6 @@ struct task_struct *copy_process(unsigned long clone_flags,
} }
#endif #endif
retval = -ENOMEM;
if ((retval = security_task_alloc(p))) if ((retval = security_task_alloc(p)))
goto bad_fork_cleanup_policy; goto bad_fork_cleanup_policy;
if ((retval = audit_alloc(p))) if ((retval = audit_alloc(p)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment