From: Li Zefan Date: Sun, 19 Oct 2008 03:28:07 +0000 (-0700) Subject: devcgroup: remove unused variable X-Git-Tag: v2.6.28-rc1~150 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c012a54ae0b2ee2c73499f54596e0f5257288fec;p=linux-2.6-omap-h63xx.git devcgroup: remove unused variable Signed-off-by: Li Zefan Acked-by: Serge Hallyn Cc: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 9c625f65ee5..d5c15a7c67c 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))