提交 9e4e23bc 编写于 作者: O Oleg Nesterov 提交者: Linus Torvalds

[PATCH] little de_thread() cleanup

Trivial, saves one 'if' branch in de_thread().
Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 833d304b
......@@ -630,10 +630,9 @@ static inline int de_thread(struct task_struct *tsk)
/*
* Account for the thread group leader hanging around:
*/
count = 2;
if (thread_group_leader(current))
count = 1;
else {
if (!thread_group_leader(current)) {
count = 2;
/*
* The SIGALRM timer survives the exec, but needs to point
* at us as the new group leader now. We have a race with
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册