Skip to content

Commit

Permalink
cgroup: Remove unused cgrp variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shaokun Zhang authored and Tejun Heo committed May 6, 2019
1 parent afe471e commit 533307d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel/cgroup/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 533307d

Please sign in to comment.