batman-adv: make tt_global_add static and return bool
authorAntonio Quartulli <ordex@autistici.org>
Sun, 5 May 2013 17:32:38 +0000 (19:32 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Sat, 12 Oct 2013 07:51:27 +0000 (09:51 +0200)
commit1e5d49fce3f16bfeac02c4ad3821be0665f66a33
tree8b5468a23f662c40ab47b11b47620c841ce20380
parent97dbc03b4776fbcfda99c4486357d28115d9adc0
batman-adv: make tt_global_add static and return bool

batadv_tt_global_add is not used anymore outside of the TT
code thanks to the TVLV implementation. It can therefore be
declared as static

Last user has been removed by 3de4e64df0f1326db7cc0ef25f5af8522850252d
("batman-adv: tvlv - convert roaming adv packet to use tvlv unicast packets")

Moreover make it return bool since its result can be either 0 or 1.

Reported-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h