Skip to content

Commit

Permalink
[IPV6]: Fixes sparse warning in ipv6/ipv6_sockglue.c
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Luiz Capitulino authored and David S. Miller committed Nov 15, 2005
1 parent 12da2a4 commit cb422c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/ipv6_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname,
{
struct ipv6_txoptions *opt;
if (optlen == 0)
optval = 0;
optval = NULL;

/* hop-by-hop / destination options are privileged option */
retv = -EPERM;
Expand Down

0 comments on commit cb422c4

Please sign in to comment.