]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
wait_task_stopped/continued: remove unneeded p->signal != NULL check
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 17 Oct 2007 06:27:00 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:52 +0000 (08:42 -0700)
commit715015e8da37c4d13e234def054bcbea116297e9
tree3c3f2cd1d516d13d50ad33519dfe98a75243eb0d
parent18442cf28af81378cf8996d264b368bba47cf846
wait_task_stopped/continued: remove unneeded p->signal != NULL check

The child was found on ->children list under tasklist_lock, it must have a
valid ->signal. __exit_signal() both removes the task from parent->children
and clears ->signal "atomically" under write_lock(tasklist).

Remove unneeded checks.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c