From: Li Zefan Date: Tue, 15 Jan 2013 06:11:32 +0000 (+0800) Subject: cpuset: drop spurious retval assignment in proc_cpuset_show() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d127027baf98dce3ca31bec18c2c0e048ceda7c4;p=linux-beck.git 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 Signed-off-by: Tejun Heo --- 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) if (!tsk) goto out_free; - retval = -EINVAL; rcu_read_lock(); css = task_subsys_state(tsk, cpuset_subsys_id); retval = cgroup_path(css->cgroup, buf, PAGE_SIZE);