提交 9531b62f 编写于 作者: U Ulrich Drepper 提交者: Ingo Molnar

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: NUlrich Drepper <drepper@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 5f5d3aa1
...@@ -4473,10 +4473,8 @@ long sched_getaffinity(pid_t pid, cpumask_t *mask) ...@@ -4473,10 +4473,8 @@ long sched_getaffinity(pid_t pid, cpumask_t *mask)
out_unlock: out_unlock:
read_unlock(&tasklist_lock); read_unlock(&tasklist_lock);
mutex_unlock(&sched_hotcpu_mutex); mutex_unlock(&sched_hotcpu_mutex);
if (retval)
return retval;
return 0; return retval;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册