diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
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) | |||
4473 | out_unlock: | 4473 | out_unlock: |
4474 | read_unlock(&tasklist_lock); | 4474 | read_unlock(&tasklist_lock); |
4475 | mutex_unlock(&sched_hotcpu_mutex); | 4475 | mutex_unlock(&sched_hotcpu_mutex); |
4476 | if (retval) | ||
4477 | return retval; | ||
4478 | 4476 | ||
4479 | return 0; | 4477 | return retval; |
4480 | } | 4478 | } |
4481 | 4479 | ||
4482 | /** | 4480 | /** |