selinux: type_bounds_sanity_check has a meaningless variable declaration
PATCH 1/1 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 <[email protected]>
---
security/selinux/ss/policydb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
security/selinux/ss/policydb.c +2 -2
@@ -1606,11 +1606,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: "
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Eric Paris
type is not used at all, stop declaring and assigning it.
Signed-off-by Eric Paris <[email protected]>
Acked-by Stephen Smalley <[email protected]>
Quoted 23 lines
---
security/selinux/ss/policydb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)security/selinux/ss/policydb.c +2
-2@@ -1606,11 +1606,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: "
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Eric Paris
type is not used at all, stop declaring and assigning it.
Signed-off-by Eric Paris <[email protected]>
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next
Signature · 7 lines
James Morris <[email protected]> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.