Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Luiz Capitulino and committed by
David S. Miller
cb422c46 12da2a43

+1 -1
+1 -1
net/ipv6/ipv6_sockglue.c
··· 287 287 { 288 288 struct ipv6_txoptions *opt; 289 289 if (optlen == 0) 290 - optval = 0; 290 + optval = NULL; 291 291 292 292 /* hop-by-hop / destination options are privileged option */ 293 293 retv = -EPERM;