mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] xfrm: Sparse warning fix.
@ 2006-01-06 14:07 Luiz Fernando Capitulino
  0 siblings, 0 replies; only message in thread
From: Luiz Fernando Capitulino @ 2006-01-06 14:07 UTC (permalink / raw)
  To: akpm; +Cc: <sergeh, jaegert, lkml


 Fixes the following sparse warning:

security/selinux/xfrm.c:155:10: warning: Using plain integer as NULL pointer

Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>

 security/selinux/xfrm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c
index c4d87d4..16eb183 100644
--- a/security/selinux/xfrm.c
+++ b/security/selinux/xfrm.c
@@ -152,7 +152,7 @@ static int selinux_xfrm_sec_ctx_alloc(st
 	return rc;
 
 out:
-	*ctxp = 0;
+	*ctxp = NULL;
 	kfree(ctx);
 	return rc;
 }


-- 
Luiz Fernando N. Capitulino

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-06 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-06 14:07 [PATCH] xfrm: Sparse warning fix Luiz Fernando Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®