mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sched: Clean up parameter passing of proc_sched_autogroup_set_nice()
Pass nice as a value to proc_sched_autogroup_set_nice(). No side effect is expected, and the variable err will be overwritten with the return value. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/4F45FBB7.5090607@ct.jp.nec.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
367456c756
commit
2e5b5b3a1b
3 changed files with 8 additions and 9 deletions
|
@ -1310,8 +1310,7 @@ sched_autogroup_write(struct file *file, const char __user *buf,
|
|||
if (!p)
|
||||
return -ESRCH;
|
||||
|
||||
err = nice;
|
||||
err = proc_sched_autogroup_set_nice(p, &err);
|
||||
err = proc_sched_autogroup_set_nice(p, nice);
|
||||
if (err)
|
||||
count = err;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue