Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9531b62f authored by Ulrich Drepper's avatar Ulrich Drepper Committed by Ingo Molnar
Browse files

sched: clean up sched_getaffinity()



here's another tiny cleanup.  The generated code is not affected (gcc is
smart enough) but for people looking over the code it is just irritating
to have the extra conditional.

Signed-off-by: default avatarUlrich Drepper <drepper@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5f5d3aa1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4473,10 +4473,8 @@ long sched_getaffinity(pid_t pid, cpumask_t *mask)
out_unlock:
	read_unlock(&tasklist_lock);
	mutex_unlock(&sched_hotcpu_mutex);
	if (retval)
		return retval;

	return 0;
	return retval;
}

/**