Skip to content

Commit

Permalink
ipv6: fix sparse warning: Using plain integer as NULL pointer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 22, 2009
1 parent 5403750 commit 66da8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/xfrm6_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66da8c5

Please sign in to comment.