Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)
{
	if (secdata)
	kfree(secdata);
}