diff --git a/kernel/sched.c b/kernel/sched.c index 42029634ef5a4a9ef743b7631a99a5da6d5a5afa..50c3587b06cb4fa8df2452e3d674ee4f68529400 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; } /**