lkml.org 
[lkml]   [2008]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] devcgroup: remove unused variable
Quoting Li Zefan (lizf@cn.fujitsu.com):
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>

Yup.

Acked-by: Serge Hallyn <serue@us.ibm.com>

thanks,
-serge

> ---
> 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 9c625f6..d5c15a7 100644
> --- a/security/device_cgroup.c
> +++ b/security/device_cgroup.c
> @@ -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))
> @@ -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))
> --
> 1.5.4.rc3
>


\
 
 \ /
  Last update: 2008-08-25 18:47    [W:0.048 / U:0.696 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site