Skip to content

Commit

Permalink
devcg: remove parent_cgroup.
Browse files Browse the repository at this point in the history
In devcgroup_css_alloc(), there is no longer need for parent_cgroup.
bd2953e("devcg: propagate local changes down the hierarchy") made
the variable parent_cgroup redundant. This patch removes parent_cgroup
from devcgroup_css_alloc().

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
ramirosen authored and htejun committed Apr 18, 2013
1 parent f00baae commit e57d5cf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions security/device_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,13 @@ static void devcgroup_offline(struct cgroup *cgroup)
static struct cgroup_subsys_state *devcgroup_css_alloc(struct cgroup *cgroup)
{
struct dev_cgroup *dev_cgroup;
struct cgroup *parent_cgroup;

dev_cgroup = kzalloc(sizeof(*dev_cgroup), GFP_KERNEL);
if (!dev_cgroup)
return ERR_PTR(-ENOMEM);
INIT_LIST_HEAD(&dev_cgroup->exceptions);
INIT_LIST_HEAD(&dev_cgroup->propagate_pending);
dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
parent_cgroup = cgroup->parent;

return &dev_cgroup->css;
}
Expand Down

0 comments on commit e57d5cf

Please sign in to comment.