提交 1e7eacaf 编写于 作者: Y YueHaibing 提交者: Tejun Heo

cpuset: Remove set but not used variable 'cs'

Fixes gcc '-Wunused-but-set-variable' warning:

kernel/cgroup/cpuset.c: In function 'cpuset_cancel_attach':
kernel/cgroup/cpuset.c:2167:17: warning:
 variable 'cs' set but not used [-Wunused-but-set-variable]

It never used since introduction in commit 1f7dd3e5 ("cgroup: fix handling
of multi-destination migration from subtree_control enabling")
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 c1bbd933
......@@ -2109,10 +2109,8 @@ static int cpuset_can_attach(struct cgroup_taskset *tset)
static void cpuset_cancel_attach(struct cgroup_taskset *tset)
{
struct cgroup_subsys_state *css;
struct cpuset *cs;
cgroup_taskset_first(tset, &css);
cs = css_cs(css);
mutex_lock(&cpuset_mutex);
css_cs(css)->attach_in_progress--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册