]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3c7ecb7af7be1a7683a467ba54d6b3920d054b2
tree64b465568169e2c86d5d1f7093735225c9d27860
parent880d2f7a2ce76587596583f54fe4c41a52864cd2
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