From: Oleg Nesterov Date: Wed, 3 Jul 2013 22:08:30 +0000 (-0700) Subject: kernel/fork.c:copy_process(): unify CLONE_THREAD-or-thread_group_leader code X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80628ca06c5d42929de6bc22c0a41589a834d151;p=pandora-kernel.git kernel/fork.c:copy_process(): unify CLONE_THREAD-or-thread_group_leader code Cleanup and preparation for the next changes. Move the "if (clone_flags & CLONE_THREAD)" code down under "if (likely(p->pid))" and turn it into into the "else" branch. This makes the process/thread initialization more symmetrical and removes one check. Signed-off-by: Oleg Nesterov Cc: "Eric W. Biederman" Cc: Michal Hocko Cc: Pavel Emelyanov Cc: Sergey Dyasly Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed