aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/device_cgroup.c2
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)
236static struct cgroup_subsys_state *devcgroup_css_alloc(struct cgroup *cgroup) 236static struct cgroup_subsys_state *devcgroup_css_alloc(struct cgroup *cgroup)
237{ 237{
238 struct dev_cgroup *dev_cgroup; 238 struct dev_cgroup *dev_cgroup;
239 struct cgroup *parent_cgroup;
240 239
241 dev_cgroup = kzalloc(sizeof(*dev_cgroup), GFP_KERNEL); 240 dev_cgroup = kzalloc(sizeof(*dev_cgroup), GFP_KERNEL);
242 if (!dev_cgroup) 241 if (!dev_cgroup)
@@ -244,7 +243,6 @@ static struct cgroup_subsys_state *devcgroup_css_alloc(struct cgroup *cgroup)
244 INIT_LIST_HEAD(&dev_cgroup->exceptions); 243 INIT_LIST_HEAD(&dev_cgroup->exceptions);
245 INIT_LIST_HEAD(&dev_cgroup->propagate_pending); 244 INIT_LIST_HEAD(&dev_cgroup->propagate_pending);
246 dev_cgroup->behavior = DEVCG_DEFAULT_NONE; 245 dev_cgroup->behavior = DEVCG_DEFAULT_NONE;
247 parent_cgroup = cgroup->parent;
248 246
249 return &dev_cgroup->css; 247 return &dev_cgroup->css;
250} 248}