From: Christian Göttsche Date: Tue, 25 Jan 2022 14:14:15 +0000 (+0100) Subject: selinux: drop cast to same type X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0b3c2b3dc96a57fd64691d666c4c7123a4f4e7b8;p=linux.git 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 9a59daa03df7 ("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 Signed-off-by: Paul Moore --- diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 5a7df45bdab17..2f8db93e53b29 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -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;