aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-08-03 15:26:05 -0400
committerJames Morris <jmorris@namei.org>2010-10-20 19:12:33 -0400
commitdaa6d83a2863c28197b0c7dabfdf1e0606760b78 (patch)
tree0c1198f796847274aeead46e791bb8c84451bfd2 /security/selinux/ss
parent68eda8f59081c74a51d037cc29893bd7c9b3c2d8 (diff)
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>
Diffstat (limited to 'security/selinux/ss')
-rw-r--r--security/selinux/ss/policydb.c4
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)
1624 1624
1625static int type_bounds_sanity_check(void *key, void *datum, void *datap) 1625static int type_bounds_sanity_check(void *key, void *datum, void *datap)
1626{ 1626{
1627 struct type_datum *upper, *type; 1627 struct type_datum *upper;
1628 struct policydb *p = datap; 1628 struct policydb *p = datap;
1629 int depth = 0; 1629 int depth = 0;
1630 1630
1631 upper = type = datum; 1631 upper = datum;
1632 while (upper->bounds) { 1632 while (upper->bounds) {
1633 if (++depth == POLICYDB_BOUNDS_MAXDEPTH) { 1633 if (++depth == POLICYDB_BOUNDS_MAXDEPTH) {
1634 printk(KERN_ERR "SELinux: type %s: " 1634 printk(KERN_ERR "SELinux: type %s: "