diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-12-01 04:12:56 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-12-03 17:23:22 +0100 |
commit | 1e7eacaf1db2f0f5f62fceda4e6c5a8869f00c13 (patch) | |
tree | a4c85d662b4823cdc6dcc95a7d7b8ab7ef7720cc /kernel/cgroup | |
parent | cgroup: Add .__DEBUG__. prefix to debug file names (diff) | |
download | linux-1e7eacaf1db2f0f5f62fceda4e6c5a8869f00c13.tar.xz 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.c | 2 |
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--; |