From: Ulrich Drepper Date: Thu, 9 Aug 2007 09:16:46 +0000 (+0200) Subject: sched: clean up sched_getaffinity() X-Git-Tag: v2.6.23-rc3~73^2~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9531b62f5ebf2b693bf85129d20328188f685c44;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index 42029634ef5..50c3587b06c 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; } /**