Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daa6d83a authored by Eric Paris's avatar Eric Paris Committed by James Morris
Browse files

selinux: type_bounds_sanity_check has a meaningless variable declaration



type is not used at all, stop declaring and assigning it.

Signed-off-by: default avatarEric Paris <eparis@redhat.com>
Acked-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 68eda8f5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: "