From: Oleg Nesterov Trivial, saves one 'if' branch in de_thread(). Signed-off-by: Oleg Nesterov Signed-off-by: Andrew Morton --- fs/exec.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -puN fs/exec.c~little-de_thread-cleanup fs/exec.c --- 25/fs/exec.c~little-de_thread-cleanup Tue Sep 20 14:19:07 2005 +++ 25-akpm/fs/exec.c Tue Sep 20 14:19:07 2005 @@ -634,10 +634,9 @@ static inline int de_thread(struct task_ /* * Account for the thread group leader hanging around: */ - count = 2; - if (thread_group_leader(current)) - count = 1; - else { + count = 1; + 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 _