]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selinux: remove extraneous initialization of slots_used and max_chain_len
authorColin Ian King <colin.king@canonical.com>
Sat, 14 Oct 2017 15:38:56 +0000 (16:38 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 16 Oct 2017 22:40:09 +0000 (18:40 -0400)
commit5794ed762ac2125299644494766704da94168ec0
tree7e222e02ea0f972eb3eafa3365bcde11f009559a
parent73e4977873bfbd8698d5b116ba32d48f2a889276
selinux: remove extraneous initialization of slots_used and max_chain_len

Variables slots_used and max_chain_len are being initialized to zero
twice. Remove the second set of initializations in the for loop.
Cleans up the clang warnings:

Value stored to 'slots_used' is never read
Value stored to 'max_chain_len' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/hashtab.c