tipc: fix sparse warnings
authorErik Hugne <erik.hugne@ericsson.com>
Wed, 10 Sep 2014 12:02:50 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 21:00:58 +0000 (14:00 -0700)
commit0fc4dffad13e81deb3bf72e74cac292172df5285
tree64b465568169e2c86d5d1f7093735225c9d27860
parentcf98192d2e2b923241b8e6eee05a5b31f4bc16f2
tipc: fix sparse warnings

This fixes the following sparse warnings:
sparse: symbol 'tipc_update_nametbl' was not declared. Should it be static?
Also, the function is changed to return bool upon success, rather than a
potentially freed pointer.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_distr.c