summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorOleg Nesterov2008-02-06 10:37:06 +0100
committerLinus Torvalds2008-02-06 19:41:04 +0100
commit0a76fe8e50ee93a9d4a1badb1ec995852a6bcaf1 (patch)
tree57a6a1b8bdb101a1ac5fd54971bfe172de949da0 /kernel/exit.c
parentAvoid divide in IS_ALIGN (diff)
downloadkernel-qcow2-linux-0a76fe8e50ee93a9d4a1badb1ec995852a6bcaf1.tar.gz
kernel-qcow2-linux-0a76fe8e50ee93a9d4a1badb1ec995852a6bcaf1.tar.xz
kernel-qcow2-linux-0a76fe8e50ee93a9d4a1badb1ec995852a6bcaf1.zip
do_wait: remove one "else if" branch
Minor cleanup. We can remove one "else if" branch. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 9d3d0f0b27d9..eb9934a82fc1 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1590,8 +1590,6 @@ repeat:
goto repeat;
if (retval != 0) /* He released the lock. */
goto end;
- } else if (p->exit_state == EXIT_DEAD) {
- continue;
} else if (p->exit_state == EXIT_ZOMBIE) {
/*
* Eligible but we cannot release it yet:
@@ -1606,7 +1604,7 @@ repeat:
/* He released the lock. */
if (retval != 0)
goto end;
- } else {
+ } else if (p->exit_state != EXIT_DEAD) {
check_continued:
/*
* It's running now, so it might later