selinux: avoid implicit conversions in the LSM hooks
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 6 Jul 2023 13:23:27 +0000 (15:23 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 18 Jul 2023 22:29:48 +0000 (18:29 -0400)
commita13479bb3c9d559fceb075986d8e0154a7eabbb1
tree4d57badaebd24ac744983af7e1fa03e6dbacdf4e
parent5f740953ab2f5dcb638a4c8c5e6128533a5d4077
selinux: avoid implicit conversions in the LSM hooks

Use the identical types in assignments of local variables for the
destination.

Merge tail calls into return statements.

Avoid using leading underscores for function local variable.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c