mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
batman-adv: tt: extract allocation of new global entries
The code which allocates and initializes a brand new global TT entry makes up a third of batadv_tt_global_add() and only needs the tt_addr, vid and flags arguments. It is also the only part of the "new entry" branch which does not deal with the global hash. Move it to batadv_tt_global_create() and let it return the initialized entry. Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
d72e16b1c5
commit
d9017aeb40
1 changed files with 51 additions and 25 deletions
Loading…
Add table
Add a link
Reference in a new issue