Commit 0b3c2b3d authored by Christian Göttsche's avatar Christian Göttsche Committed by Paul Moore
Browse files

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 9a59daa0
("SELinux: fix sleeping allocation in security_context_to_sid"), where
the type of scontext changed from const char* to char*.

Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 9e2fe574
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1452,7 +1452,7 @@ static int string_to_context_struct(struct policydb *pol,
	/* Parse the security context. */

	rc = -EINVAL;
	scontextp = (char *) scontext;
	scontextp = scontext;

	/* Extract the user. */
	p = scontextp;