From: Luiz Capitulino Date: Sat, 7 Jan 2006 06:59:43 +0000 (-0800) Subject: [XFRM]: Fix sparse warning. X-Git-Tag: v2.6.16-rc1~926 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee2e6841b934d76cb944a3390bbea84da777d4fa;p=linux-2.6 [XFRM]: Fix sparse warning. security/selinux/xfrm.c:155:10: warning: Using plain integer as NULL pointer Signed-off-by: Luiz Capitulino Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c index 5b7776504e..b2af7ca496 100644 --- a/security/selinux/xfrm.c +++ b/security/selinux/xfrm.c @@ -146,7 +146,7 @@ static int selinux_xfrm_sec_ctx_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_us return rc; out: - *ctxp = 0; + *ctxp = NULL; kfree(ctx); return rc; }