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

Commit 73e49778 authored by Colin Ian King's avatar Colin Ian King Committed by Paul Moore
Browse files

selinux: remove redundant assignment to len



The variable len is being set to zero and this value is never
being read since len is being set to a different value just
a few lines later.  Remove this redundant assignment. Cleans
up clang warning: Value stored to 'len' is never read

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent add24372
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -361,7 +361,6 @@ static int cond_read_av_list(struct policydb *p, void *fp, struct cond_av_list *

	*ret_list = NULL;

	len = 0;
	rc = next_entry(buf, fp, sizeof(u32));
	if (rc)
		return rc;