Skip to content

Commit

Permalink
devcgroup: remove unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Li Zefan <[email protected]>
Acked-by: Serge Hallyn <[email protected]>
Cc: Paul Menage <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Li Zefan authored and torvalds committed Oct 20, 2008
1 parent 2cdc724 commit c012a54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions security/device_cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup,
struct dev_cgroup *cur_devcgroup;
const char *b;
char *endp;
int retval = 0, count;
int count;
struct dev_whitelist_item wh;

if (!capable(CAP_SYS_ADMIN))
Expand Down Expand Up @@ -432,7 +432,6 @@ static int devcgroup_update_access(struct dev_cgroup *devcgroup,
}

handle:
retval = 0;
switch (filetype) {
case DEVCG_ALLOW:
if (!parent_has_perm(devcgroup, &wh))
Expand Down

0 comments on commit c012a54

Please sign in to comment.