Skip to contentSkip to conversation

do_wait: remove one "else if" branch

PATCH New Oleg Nesterov 1 participant 1 message Nov 20, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 do_wait: remove one "else if" branch

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

kernel/exit.c renamed from kernel/exit.c~3_EXIT_DEAD +1 -3
@@ -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