devcgroup: remove unused variable
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Cc: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -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,
|
|||||||
}
|
}
|
||||||
|
|
||||||
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))
|
||||||
|
Reference in New Issue
Block a user