]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sched: clean up sched_getaffinity()
authorUlrich Drepper <drepper@redhat.com>
Thu, 9 Aug 2007 09:16:46 +0000 (11:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Aug 2007 09:16:46 +0000 (11:16 +0200)
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>
kernel/sched.c

index 42029634ef5a4a9ef743b7631a99a5da6d5a5afa..50c3587b06cb4fa8df2452e3d674ee4f68529400 100644 (file)
@@ -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;
 }
 
 /**