]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/selinux/ss/policydb.c
selinux: type_bounds_sanity_check has a meaningless variable declaration
[net-next-2.6.git] / security / selinux / ss / policydb.c
index 3a29704be8ce10f4409dd0a3d4f0bea8bb0d1086..aa5a2fd1cc09e83305817e036d3334b7edb4a665 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: "