diff options
author | Rami Rosen <ramirose@gmail.com> | 2013-04-16 23:24:55 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-04-18 11:34:35 -0700 |
commit | e57d5cf2f894e3f2727f8cf74bed0bc81cae70c8 (patch) | |
tree | fef5ebac1e3291e772d0852a8716b0b4bd2c27ef /security/device_cgroup.c | |
parent | f00baae7ad6c5f1503528efa852f0be8e9513f0e (diff) | |
download | linux-e57d5cf2f894e3f2727f8cf74bed0bc81cae70c8.tar.bz2 |
devcg: remove parent_cgroup.
In devcgroup_css_alloc(), there is no longer need for parent_cgroup.
bd2953ebbb("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>
Diffstat (limited to 'security/device_cgroup.c')
-rw-r--r-- | security/device_cgroup.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 994aeccea518..dd0dc574d78d 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c @@ -236,7 +236,6 @@ 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) @@ -244,7 +243,6 @@ static struct cgroup_subsys_state *devcgroup_css_alloc(struct cgroup *cgroup) 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; } |