Commit c012a54a authored by Li Zefan's avatar Li Zefan Committed by Linus Torvalds

devcgroup: remove unused variable

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2cdc7241
...@@ -355,7 +355,7 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup, ...@@ -355,7 +355,7 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup,
struct dev_cgroup *cur_devcgroup; struct dev_cgroup *cur_devcgroup;
const char *b; const char *b;
char *endp; char *endp;
int retval = 0, count; int count;
struct dev_whitelist_item wh; struct dev_whitelist_item wh;
if (!capable(CAP_SYS_ADMIN)) if (!capable(CAP_SYS_ADMIN))
...@@ -432,7 +432,6 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup, ...@@ -432,7 +432,6 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup,
} }
handle: handle:
retval = 0;
switch (filetype) { switch (filetype) {
case DEVCG_ALLOW: case DEVCG_ALLOW:
if (!parent_has_perm(devcgroup, &wh)) if (!parent_has_perm(devcgroup, &wh))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment