Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9531b62f5ebf2b693bf85129d20328188f685c44 Commit: 9531b62f5ebf2b693bf85129d20328188f685c44 Parent: 5f5d3aa15bb24a4d5d195bd32d549bd725d414bc Author: Ulrich Drepper <[EMAIL PROTECTED]> AuthorDate: Thu Aug 9 11:16:46 2007 +0200 Committer: Ingo Molnar <[EMAIL PROTECTED]> CommitDate: Thu Aug 9 11:16:46 2007 +0200
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: Ulrich Drepper <[EMAIL PROTECTED]> Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> --- kernel/sched.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/sched.c b/kernel/sched.c index 4202963..50c3587 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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; } /** - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html