From: Oleg Nesterov Date: Wed, 29 Mar 2006 00:11:28 +0000 (-0800) Subject: [PATCH] finish_stop: don't check stop_count < 0 X-Git-Tag: firefly_0821_release~36593 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=883606a7c9e84e206f96c38f88c4bd66df72f51e;p=firefly-linux-kernel-4.4.55.git [PATCH] finish_stop: don't check stop_count < 0 Remove an obscure 'stop_count < 0' check in finish_stop(). The previous patch made this case impossible. Signed-off-by: Oleg Nesterov Cc: john stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index efba39626e66..24d5059ab0a9 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1657,7 +1657,7 @@ finish_stop(int stop_count) * a group stop in progress and we are the last to stop, * report to the parent. When ptraced, every thread reports itself. */ - if (stop_count < 0 || (current->ptrace & PT_PTRACED)) + if (current->ptrace & PT_PTRACED) to_self = 1; else if (stop_count == 0) to_self = 0;