mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] - Fixes sparse warning in ipv6/ipv6_sockglue.c
@ 2005-11-14 11:54 Luiz Fernando Capitulino
  2005-11-15  5:43 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Fernando Capitulino @ 2005-11-14 11:54 UTC (permalink / raw)
  To: akpm; +Cc: lkml, netdev

Hi,

The patch below fixes the following sparse warning:

net/ipv6/ipv6_sockglue.c:291:13: warning: Using plain integer as NULL pointer

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

 net/ipv6/ipv6_sockglue.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -287,7 +287,7 @@ int ipv6_setsockopt(struct sock *sk, int
 	{
 		struct ipv6_txoptions *opt;
 		if (optlen == 0)
-			optval = 0;
+			optval = NULL;
 
 		/* hop-by-hop / destination options are privileged option */
 		retv = -EPERM;


-- 
Luiz Fernando N. Capitulino

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] - Fixes sparse warning in ipv6/ipv6_sockglue.c
  2005-11-14 11:54 [PATCH] - Fixes sparse warning in ipv6/ipv6_sockglue.c Luiz Fernando Capitulino
@ 2005-11-15  5:43 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-11-15  5:43 UTC (permalink / raw)
  To: lcapitulino; +Cc: akpm, linux-kernel, netdev

From: Luiz Fernando Capitulino <lcapitulino@mandriva.com.br>
Date: Mon, 14 Nov 2005 09:54:22 -0200

> The patch below fixes the following sparse warning:
> 
> net/ipv6/ipv6_sockglue.c:291:13: warning: Using plain integer as NULL pointer
> 
> Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-15  5:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-14 11:54 [PATCH] - Fixes sparse warning in ipv6/ipv6_sockglue.c Luiz Fernando Capitulino
2005-11-15  5:43 ` David S. Miller

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®