summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-14 16:00:49 +0100
committerPaul Moore <paul@paul-moore.com>2017-10-16 18:37:23 -0400
commit73e4977873bfbd8698d5b116ba32d48f2a889276 (patch)
tree10d8c881bc5d58ddd1aa0971734f57154152d478 /security/selinux
parentadd24372141855b057bf53982824c5fe50898957 (diff)
downloadtalos-obmc-linux-73e4977873bfbd8698d5b116ba32d48f2a889276.tar.gz
talos-obmc-linux-73e4977873bfbd8698d5b116ba32d48f2a889276.zip
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/ss/conditional.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c
index 771c96afe1d5..c91543a617ac 100644
--- a/security/selinux/ss/conditional.c
+++ b/security/selinux/ss/conditional.c
@@ -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;
OpenPOWER on IntegriCloud