Commit 088999e9 authored by Paul Moore's avatar Paul Moore Committed by James Morris

SELinux: remove redundant pointer checks before calling kfree()

We don't need to check for NULL pointers before calling kfree().
Signed-off-by: default avatarPaul Moore <paul.moore@hp.com>
Acked-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 9534f71c
...@@ -4658,7 +4658,6 @@ static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) ...@@ -4658,7 +4658,6 @@ static int selinux_secid_to_secctx(u32 secid, char **secdata, u32 *seclen)
static void selinux_release_secctx(char *secdata, u32 seclen) static void selinux_release_secctx(char *secdata, u32 seclen)
{ {
if (secdata)
kfree(secdata); kfree(secdata);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment