aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-01-15 01:11:32 -0500
committerTejun Heo <tj@kernel.org>2013-01-15 11:38:55 -0500
commitd127027baf98dce3ca31bec18c2c0e048ceda7c4 (patch)
tree120f1a9ea23f3f7daa70e40aad513c0448cbdcb3 /kernel
parent27e89ae5d6e94e30231ee89a7736f62d84ba4c6f (diff)
cpuset: drop spurious retval assignment in proc_cpuset_show()
proc_cpuset_show() has a spurious -EINVAL assignment which does nothing. Remove it. This patch doesn't make any functional difference. tj: Rewrote patch description. Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpuset.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 1a675e446ef2..16be7c9edfd7 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -2677,7 +2677,6 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v)
2677 if (!tsk) 2677 if (!tsk)
2678 goto out_free; 2678 goto out_free;
2679 2679
2680 retval = -EINVAL;
2681 rcu_read_lock(); 2680 rcu_read_lock();
2682 css = task_subsys_state(tsk, cpuset_subsys_id); 2681 css = task_subsys_state(tsk, cpuset_subsys_id);
2683 retval = cgroup_path(css->cgroup, buf, PAGE_SIZE); 2682 retval = cgroup_path(css->cgroup, buf, PAGE_SIZE);