[TIPC]: Fix simple sparse warnings
authorSam Ravnborg <sam@ravnborg.org>
Tue, 21 Mar 2006 06:36:47 +0000 (22:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 06:36:47 +0000 (22:36 -0800)
commit1fc54d8f49c1270c584803437fb7c0ac543588c1
tree13bccf49154e57986a7e218e38d243912aaea6d1
parentedb2c34fb2683ff21c8a6bcc3e41c07a53601761
[TIPC]: Fix simple sparse warnings

Tried to run the new tipc stack through sparse.
Following patch fixes all cases where 0 was used
as replacement of NULL.
Use NULL to document this is a pointer and to silence sparse.

This brough sparse warning count down with 127 to 24 warnings.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Per Liden <per.liden@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 files changed:
net/tipc/bcast.c
net/tipc/bearer.c
net/tipc/cluster.c
net/tipc/cluster.h
net/tipc/config.c
net/tipc/dbg.c
net/tipc/eth_media.c
net/tipc/link.c
net/tipc/name_distr.c
net/tipc/name_table.c
net/tipc/net.c
net/tipc/node.c
net/tipc/node.h
net/tipc/node_subscr.c
net/tipc/port.c
net/tipc/ref.c
net/tipc/ref.h
net/tipc/socket.c
net/tipc/subscr.c
net/tipc/user_reg.c
net/tipc/zone.c