Commit daa6d83a2863c28197b0c7dabfdf1e0606760b78

Authored by Eric Paris
Committed by James Morris
1 parent 68eda8f590

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

security/selinux/ss/policydb.c
... ... @@ -1624,11 +1624,11 @@
1624 1624  
1625 1625 static 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 1628 struct policydb *p = datap;
1629 1629 int depth = 0;
1630 1630  
1631   - upper = type = datum;
  1631 + upper = datum;
1632 1632 while (upper->bounds) {
1633 1633 if (++depth == POLICYDB_BOUNDS_MAXDEPTH) {
1634 1634 printk(KERN_ERR "SELinux: type %s: "