summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-12-01 03:12:56 +0000
committerTejun Heo <tj@kernel.org>2018-12-03 08:23:22 -0800
commit1e7eacaf1db2f0f5f62fceda4e6c5a8869f00c13 (patch)
treea4c85d662b4823cdc6dcc95a7d7b8ab7ef7720cc /kernel/cgroup
parentc1bbd933e5fae83f96acd3f748bb01a0300b315d (diff)
downloadlinux-1e7eacaf1db2f0f5f62fceda4e6c5a8869f00c13.tar.gz
linux-1e7eacaf1db2f0f5f62fceda4e6c5a8869f00c13.tar.bz2
linux-1e7eacaf1db2f0f5f62fceda4e6c5a8869f00c13.zip
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 1f7dd3e5a6e4 ("cgroup: fix handling of multi-destination migration from subtree_control enabling") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cpuset.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 1151e93d71b6..f0decd8165e7 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -2109,10 +2109,8 @@ out_unlock:
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--;