batman-adv: return proper value in case of hash_add failure
authorAntonio Quartulli <ordex@autistici.org>
Sat, 11 Aug 2012 09:11:00 +0000 (11:11 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 29 Oct 2012 08:42:31 +0000 (09:42 +0100)
commitc10dba051a3e287a4f023aaaeffa53fd642cf8c5
tree305c89c8b4cda203770f9b4c3a513e4c83c5a928
parent30da63a6af1dbf60e6d989faa4b984b1c6c9dfaf
batman-adv: return proper value in case of hash_add failure

In case of hash_add failure tt_global_add() must return 0 (which means on entry
insertion).

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/translation-table.c