summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-21 23:37:10 -0800
committerDavid S. Miller <davem@davemloft.net>2009-02-21 23:37:10 -0800
commit66da8c529ad4d330a268ac08aa101b87c5c911ff (patch)
tree76296f538f5190eed12ec0b9eae740a7ff96a72a /net/ipv6
parent54037505a5278ce85df66531f384109ad94947e3 (diff)
downloadlinux-3.10-66da8c529ad4d330a268ac08aa101b87c5c911ff.tar.gz
linux-3.10-66da8c529ad4d330a268ac08aa101b87c5c911ff.tar.bz2
linux-3.10-66da8c529ad4d330a268ac08aa101b87c5c911ff.zip
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 <hannes@hanneseder.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/xfrm6_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_state.c b/net/ipv6/xfrm6_state.c
index 0e685b05496..f417b77fa0e 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;