Skip to content

Commit

Permalink
do_wait: remove one "else if" branch
Browse files Browse the repository at this point in the history
Minor cleanup. We can remove one "else if" branch.

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Roland McGrath <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Feb 6, 2008
1 parent f10db62 commit 0a76fe8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,8 +1590,6 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop,
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:
Expand All @@ -1606,7 +1604,7 @@ static long do_wait(pid_t pid, int options, struct siginfo __user *infop,
/* 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
Expand Down

0 comments on commit 0a76fe8

Please sign in to comment.