]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] finish_stop: don't check stop_count < 0
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 29 Mar 2006 00:11:28 +0000 (16:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 29 Mar 2006 02:36:44 +0000 (18:36 -0800)
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>
kernel/signal.c

index efba39626e664bb408e8c53439f269e97faff3c1..24d5059ab0a92587e284ff677c82f727faf0b2ad 100644 (file)
@@ -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;