selinux: simplify cred_init_security
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 25 Jan 2022 14:14:18 +0000 (15:14 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 26 Jan 2022 20:57:39 +0000 (15:57 -0500)
commitb084e189b01a7614d3098aca4f2381a759460d88
tree1c7c71d34f5d54335d3ec1e27ee3b16443e6cb94
parent73073d956a2073554b99d621a7a7ec9437055044
selinux: simplify cred_init_security

The parameter of selinux_cred() is declared const, so an explicit cast
dropping the const qualifier is not necessary. Without the cast the
local variable cred serves no purpose.

Reported by clang [-Wcast-qual]

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