summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-03-29 00:11:28 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-29 02:36:44 (GMT)
commit883606a7c9e84e206f96c38f88c4bd66df72f51e (patch)
tree8ac0a656ac7a46b83f00b0be094025104496332f /kernel
parentdac27f4a09c274db048e80d2511102e540ac9e3a (diff)
downloadlinux-fsl-qoriq-883606a7c9e84e206f96c38f88c4bd66df72f51e.tar.xz
[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 <oleg@tv-sign.ru> Cc: john stultz <johnstul@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index efba396..24d5059 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;