From: Zhaolei Date: Tue, 6 Jan 2009 22:40:46 +0000 (-0800) Subject: fork.c: cleanup for copy_sighand() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=60348802e9cb137ee86590c3e4c57c1ec2e8fc69;p=openwrt%2Fstaging%2Fblogic.git fork.c: cleanup for copy_sighand() Check CLONE_SIGHAND only is enough, because combination of CLONE_THREAD and CLONE_SIGHAND is already done in copy_process(). Impact: cleanup, no functionality changed Signed-off-by: Zhao Lei Cc: Roland McGrath Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/fork.c b/kernel/fork.c index 43cbf30669e6..23b912116675 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -758,7 +758,7 @@ static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) { struct sighand_struct *sig; - if (clone_flags & (CLONE_SIGHAND | CLONE_THREAD)) { + if (clone_flags & CLONE_SIGHAND) { atomic_inc(¤t->sighand->count); return 0; }