diff options
Diffstat (limited to 'security/device_cgroup.c')
-rw-r--r-- | security/device_cgroup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 9c625f65ee56..d5c15a7c67c3 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c | |||
@@ -355,7 +355,7 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup, | |||
355 | struct dev_cgroup *cur_devcgroup; | 355 | struct dev_cgroup *cur_devcgroup; |
356 | const char *b; | 356 | const char *b; |
357 | char *endp; | 357 | char *endp; |
358 | int retval = 0, count; | 358 | int count; |
359 | struct dev_whitelist_item wh; | 359 | struct dev_whitelist_item wh; |
360 | 360 | ||
361 | if (!capable(CAP_SYS_ADMIN)) | 361 | if (!capable(CAP_SYS_ADMIN)) |
@@ -432,7 +432,6 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup, | |||
432 | } | 432 | } |
433 | 433 | ||
434 | handle: | 434 | handle: |
435 | retval = 0; | ||
436 | switch (filetype) { | 435 | switch (filetype) { |
437 | case DEVCG_ALLOW: | 436 | case DEVCG_ALLOW: |
438 | if (!parent_has_perm(devcgroup, &wh)) | 437 | if (!parent_has_perm(devcgroup, &wh)) |