[PATCH -mm] do_wait: remove one "else if" branch

From: Oleg Nesterov
Date: Tue Nov 20 2007 - 10:37:24 EST


Minor cleanup. We can remove one "else if" branch.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- PT/kernel/exit.c~3_EXIT_DEAD 2007-11-20 17:54:07.000000000 +0300
+++ PT/kernel/exit.c 2007-11-20 18:23:16.000000000 +0300
@@ -1561,8 +1561,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:
@@ -1577,7 +1575,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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/