Commit 0a76fe8e authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

do_wait: remove one "else if" branch

Minor cleanup. We can remove one "else if" branch.
Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f10db627
...@@ -1590,8 +1590,6 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop, ...@@ -1590,8 +1590,6 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop,
goto repeat; goto repeat;
if (retval != 0) /* He released the lock. */ if (retval != 0) /* He released the lock. */
goto end; goto end;
} else if (p->exit_state == EXIT_DEAD) {
continue;
} else if (p->exit_state == EXIT_ZOMBIE) { } else if (p->exit_state == EXIT_ZOMBIE) {
/* /*
* Eligible but we cannot release it yet: * Eligible but we cannot release it yet:
...@@ -1606,7 +1604,7 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop, ...@@ -1606,7 +1604,7 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop,
/* He released the lock. */ /* He released the lock. */
if (retval != 0) if (retval != 0)
goto end; goto end;
} else { } else if (p->exit_state != EXIT_DEAD) {
check_continued: check_continued:
/* /*
* It's running now, so it might later * It's running now, so it might later
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment