diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2012-02-23 12:41:27 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-02 15:23:49 +0400 |
commit | 2e5b5b3a1b7768c89fbfeca18e75f8ee377e924c (patch) | |
tree | 0d6d589e42b7e88464d5edcfa818b3a7e27a93e8 /fs | |
parent | 367456c756a6b84f493ca9cc5b17b1f5d38ef466 (diff) | |
download | linux-2e5b5b3a1b7768c89fbfeca18e75f8ee377e924c.tar.xz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index d4548dd49b02..965d4bde3a3b 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -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; |