From: Luiz Capitulino Date: Sat, 7 Jan 2006 06:59:43 +0000 (-0800) Subject: [XFRM]: Fix sparse warning. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee2e6841b934d76cb944a3390bbea84da777d4fa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 5b7776504e4c..b2af7ca496c1 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; }