summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-08-30 17:21:47 +0200
committerSven Eckelmann <sven@narfation.org>2026-08-30 20:05:57 +0200
commitdefa87f5ce75fee9d8d1f401b95f5ece7418de7e (patch)
treee42f3f019b70f180bac90a5917a43f94950071c7 /tools/lib/python/kdoc
parent3273a5cd2d7445e90bcb0851fbb5b7f1f72192be (diff)
batman-adv: tt: extract allocation of new local entries
The code which allocates and initializes a brand new local TT entry makes up more than a third of batadv_tt_local_add(). It only shares the addr, vid and iif_is_wifi parameters with the rest of the function. Move it to batadv_tt_local_create(), which returns the fully initialized entry. The error paths become plain returns. The insertion into bat_priv->tt.local_hash intentionally stays in batadv_tt_local_add(), keeping the extra reference for the hash next to the error handling which has to drop it again. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions