projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12da2a4
)
[IPV6]: Fixes sparse warning in ipv6/ipv6_sockglue.c
author
Luiz Capitulino
<lcapitulino@mandriva.com.br>
Tue, 15 Nov 2005 05:43:36 +0000
(21:43 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 15 Nov 2005 05:43:36 +0000
(21:43 -0800)
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>
net/ipv6/ipv6_sockglue.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/ipv6_sockglue.c
b/net/ipv6/ipv6_sockglue.c
index 003fd99ff597d6f4332008c90f6bdcb2b9e80493..25757ade989f50d23bf2e7d948d1286918678070 100644
(file)
--- a/
net/ipv6/ipv6_sockglue.c
+++ b/
net/ipv6/ipv6_sockglue.c
@@
-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;