selinux: Remove redundant assignments
authorMichal Orzel <michalorzel.eng@gmail.com>
Thu, 31 Mar 2022 17:33:57 +0000 (19:33 +0200)
committerPaul Moore <paul@paul-moore.com>
Mon, 4 Apr 2022 19:38:53 +0000 (15:38 -0400)
commit0a9876f36b08706d9954d8ccb42d0cd85f210333
tree6637caf41df61bcef322027eff4857006ad6fe54
parent3123109284176b1532874591f7c81f3837bbdc17
selinux: Remove redundant assignments

Get rid of redundant assignments which end up in values not being
read either because they are overwritten or the function ends.

Reported by clang-tidy [deadcode.DeadStores]

Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/avc.c
security/selinux/hooks.c
security/selinux/ss/services.c