summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorUlrich Drepper2007-08-09 11:16:46 +0200
committerIngo Molnar2007-08-09 11:16:46 +0200
commit9531b62f5ebf2b693bf85129d20328188f685c44 (patch)
tree6ea7390bfcc034bc6aebcd3e0699450c0086beb5 /kernel/sched.c
parentsched: mention CONFIG_SCHED_DEBUG in documentation (diff)
downloadkernel-qcow2-linux-9531b62f5ebf2b693bf85129d20328188f685c44.tar.gz
kernel-qcow2-linux-9531b62f5ebf2b693bf85129d20328188f685c44.tar.xz
kernel-qcow2-linux-9531b62f5ebf2b693bf85129d20328188f685c44.zip
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 <drepper@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 42029634ef5a..50c3587b06cb 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;
}
/**