提交 cb422c46 编写于 作者: L Luiz Capitulino 提交者: David S. Miller

[IPV6]: Fixes sparse warning in ipv6/ipv6_sockglue.c

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: NLuiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 12da2a43
...@@ -287,7 +287,7 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname, ...@@ -287,7 +287,7 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname,
{ {
struct ipv6_txoptions *opt; struct ipv6_txoptions *opt;
if (optlen == 0) if (optlen == 0)
optval = 0; optval = NULL;
/* hop-by-hop / destination options are privileged option */ /* hop-by-hop / destination options are privileged option */
retv = -EPERM; retv = -EPERM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册