summaryrefslogtreecommitdiff
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2019-04-30 12:57:29 +0300
committerTejun Heo <tj@kernel.org>2019-05-06 18:33:45 +0300
commit533307dc20a9e84a0687d4ca24aeb669516c0243 (patch)
treee315af00f481bfb97b7f90729d35236be434339f /kernel/cgroup
parentafe471ea2d6fcd439c3a7a1fe2df0389e07a67c8 (diff)
downloadlinux-533307dc20a9e84a0687d4ca24aeb669516c0243.tar.xz
cgroup: Remove unused cgrp variable
The 'cgrp' is set but not used in commit <76f969e8948d8> ("cgroup: cgroup v2 freezer"). Remove it to avoid [-Wunused-but-set-variable] warning. Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Acked-by: Roman Gushchin <guro@fb.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cgroup.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 57edcf398d71..4fe9f7f1a3fa 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -5864,11 +5864,8 @@ void cgroup_post_fork(struct task_struct *child)
* the task into the frozen state.
*/
if (unlikely(cgroup_task_freeze(child))) {
- struct cgroup *cgrp;
-
spin_lock(&child->sighand->siglock);
WARN_ON_ONCE(child->frozen);
- cgrp = cset->dfl_cgrp;
child->jobctl |= JOBCTL_TRAP_FREEZE;
spin_unlock(&child->sighand->siglock);