]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit649d7619627a231e8d6fe120f9598bcf2a2669fc
tree13bccf49154e57986a7e218e38d243912aaea6d1
parentef4cd8fad7223eea347a2674e73e325a7603214a
[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