diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-02-06 04:37:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 13:41:04 -0500 |
commit | 0a76fe8e50ee93a9d4a1badb1ec995852a6bcaf1 (patch) | |
tree | 57a6a1b8bdb101a1ac5fd54971bfe172de949da0 | |
parent | f10db6277dfd6dffb80b2182a256d35adb3134bc (diff) |
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>
-rw-r--r-- | kernel/exit.c | 4 |
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: | |||
1590 | goto repeat; | 1590 | goto repeat; |
1591 | if (retval != 0) /* He released the lock. */ | 1591 | if (retval != 0) /* He released the lock. */ |
1592 | goto end; | 1592 | goto end; |
1593 | } else if (p->exit_state == EXIT_DEAD) { | ||
1594 | continue; | ||
1595 | } else if (p->exit_state == EXIT_ZOMBIE) { | 1593 | } else if (p->exit_state == EXIT_ZOMBIE) { |
1596 | /* | 1594 | /* |
1597 | * Eligible but we cannot release it yet: | 1595 | * Eligible but we cannot release it yet: |
@@ -1606,7 +1604,7 @@ repeat: | |||
1606 | /* He released the lock. */ | 1604 | /* He released the lock. */ |
1607 | if (retval != 0) | 1605 | if (retval != 0) |
1608 | goto end; | 1606 | goto end; |
1609 | } else { | 1607 | } else if (p->exit_state != EXIT_DEAD) { |
1610 | check_continued: | 1608 | check_continued: |
1611 | /* | 1609 | /* |
1612 | * It's running now, so it might later | 1610 | * It's running now, so it might later |