* [PATCH -mm] do_wait: remove one "else if" branch
@ 2007-11-20 15:37 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2007-11-20 15:37 UTC (permalink / raw)
To: Andrew Morton; +Cc: Roland McGrath, Matthew Wilcox, linux-kernel
Minor cleanup. We can remove one "else if" branch.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-20 15:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-20 15:37 [PATCH -mm] do_wait: remove one "else if" branch Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®