Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=088999e98b8caecd31adc3b62223a228555c5ab7 Commit: 088999e98b8caecd31adc3b62223a228555c5ab7 Parent: 9534f71ca33e5a9de26dfd43c76af86e005005dd Author: Paul Moore <[EMAIL PROTECTED]> AuthorDate: Wed Aug 1 11:12:58 2007 -0400 Committer: James Morris <[EMAIL PROTECTED]> CommitDate: Thu Aug 2 11:52:23 2007 -0400
SELinux: remove redundant pointer checks before calling kfree() We don't need to check for NULL pointers before calling kfree(). Signed-off-by: Paul Moore <[EMAIL PROTECTED]> Acked-by: Stephen Smalley <[EMAIL PROTECTED]> Signed-off-by: James Morris <[EMAIL PROTECTED]> --- security/selinux/hooks.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 0fac682..6237933 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -4658,8 +4658,7 @@ 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); + kfree(secdata); } #ifdef CONFIG_KEYS - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html