Commit 533307dc authored by Shaokun Zhang's avatar Shaokun Zhang Committed by Tejun Heo

cgroup: Remove unused cgrp variable

The 'cgrp' is set but not used in commit <76f969e8>
("cgroup: cgroup v2 freezer").
Remove it to avoid [-Wunused-but-set-variable] warning.

Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
Acked-by: default avatarRoman Gushchin <guro@fb.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent afe471ea
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment