projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5403750
)
ipv6: fix sparse warning: Using plain integer as NULL pointer
author
Hannes Eder
<hannes@hanneseder.net>
Sun, 22 Feb 2009 07:37:10 +0000
(23:37 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 22 Feb 2009 07:37:10 +0000
(23:37 -0800)
Fix this sparse warning:
net/ipv6/xfrm6_state.c:72:26: warning: Using plain integer as NULL pointer
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_state.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/xfrm6_state.c
b/net/ipv6/xfrm6_state.c
index 0e685b05496ee6456e5b2d7ab2d5feddd2b52e07..f417b77fa0e15762715a9498974fbd8f5071401d 100644
(file)
--- a/
net/ipv6/xfrm6_state.c
+++ b/
net/ipv6/xfrm6_state.c
@@
-69,7
+69,7
@@
__xfrm6_sort(void **dst, void **src, int n, int (*cmp)(void *p), int maxclass)
for (i = 0; i < n; i++) {
dst[count[class[i] - 1]++] = src[i];
- src[i] =
0
;
+ src[i] =
NULL
;
}
return 0;