From: Hannes Eder Date: Sun, 22 Feb 2009 07:37:10 +0000 (-0800) Subject: ipv6: fix sparse warning: Using plain integer as NULL pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66da8c529ad4d330a268ac08aa101b87c5c911ff;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ipv6: fix sparse warning: Using plain integer as NULL pointer Fix this sparse warning: net/ipv6/xfrm6_state.c:72:26: warning: Using plain integer as NULL pointer Signed-off-by: Hannes Eder Signed-off-by: David S. Miller --- diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c index 0e685b05496e..f417b77fa0e1 100644 --- 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;