]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5b841b63e816d0ba22053363c14dac7f57da60c
tree6637caf41df61bcef322027eff4857006ad6fe54
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
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