]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: drop cast to same type
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 25 Jan 2022 14:14:15 +0000 (15:14 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 26 Jan 2022 20:25:47 +0000 (15:25 -0500)
commit6f1cdbfd1633d1575b3f193c07414527273020a2
tree8de2a216ba0c5b332391fe896caf3b286c2bb453
parent5b0347eed871fb203c65a7de22d105f3af7657f7
selinux: drop cast to same type

Both the lvalue scontextp and rvalue scontext are of the type char*.
Drop the redundant explicit cast not needed since commit ef129b05537d
("SELinux: fix sleeping allocation in security_context_to_sid"), where
the type of scontext changed from const char* to char*.

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