diff options
author | Eric Paris <eparis@redhat.com> | 2010-08-03 21:26:05 +0200 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-10-21 01:12:33 +0200 |
commit | daa6d83a2863c28197b0c7dabfdf1e0606760b78 (patch) | |
tree | 0c1198f796847274aeead46e791bb8c84451bfd2 | |
parent | tomoyo: cleanup. don't store bogus pointer (diff) | |
download | linux-daa6d83a2863c28197b0c7dabfdf1e0606760b78.tar.xz linux-daa6d83a2863c28197b0c7dabfdf1e0606760b78.zip |
selinux: type_bounds_sanity_check has a meaningless variable declaration
type is not used at all, stop declaring and assigning it.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
-rw-r--r-- | security/selinux/ss/policydb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c index 3a29704be8ce..aa5a2fd1cc09 100644 --- a/security/selinux/ss/policydb.c +++ b/security/selinux/ss/policydb.c @@ -1624,11 +1624,11 @@ static int role_bounds_sanity_check(void *key, void *datum, void *datap) static int type_bounds_sanity_check(void *key, void *datum, void *datap) { - struct type_datum *upper, *type; + struct type_datum *upper; struct policydb *p = datap; int depth = 0; - upper = type = datum; + upper = datum; while (upper->bounds) { if (++depth == POLICYDB_BOUNDS_MAXDEPTH) { printk(KERN_ERR "SELinux: type %s: " |