From: Eric Paris Date: Tue, 3 Aug 2010 19:26:05 +0000 (-0400) Subject: selinux: type_bounds_sanity_check has a meaningless variable declaration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=daa6d83a2863c28197b0c7dabfdf1e0606760b78;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Stephen Smalley Signed-off-by: James Morris --- 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: "