selinux: type_bounds_sanity_check has a meaningless variable declaration
authorEric Paris <eparis@redhat.com>
Tue, 3 Aug 2010 19:26:05 +0000 (15:26 -0400)
committerJames Morris <jmorris@namei.org>
Wed, 20 Oct 2010 23:12:33 +0000 (10:12 +1100)
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>
security/selinux/ss/policydb.c

index 3a29704..aa5a2fd 100644 (file)
@@ -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: "