ipv6: fix sparse warning: Using plain integer as NULL pointer
authorHannes Eder <hannes@hanneseder.net>
Sun, 22 Feb 2009 07:37:10 +0000 (23:37 -0800)
committerDavid 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

index 0e685b05496ee6456e5b2d7ab2d5feddd2b52e07..f417b77fa0e15762715a9498974fbd8f5071401d 100644 (file)
@@ -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;