Skip to contentSkip to conversation

little de_thread() cleanup

PATCH New Oleg Nesterov 1 participant 1 message Sep 18, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 little de_thread() cleanup

Trivial, saves one 'if' branch in de_thread().

fs/exec.c renamed from fs/exec.c~3_DETHR +3 -4
@@ -639,10 +639,9 @@ static inline int de_thread(struct task_
 	/*
 	 * Account for the thread group leader hanging around:
 	 */
-	count = 2;
-	if (thread_group_leader(current))
-		count = 1;
-	else {
+	count = 1;
+	if (!thread_group_leader(current)) {
+		count = 2;
 		/*
 		 * The SIGALRM timer survives the exec, but needs to point
 		 * at us as the new group leader now.  We have a race with