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: drop the cleanup label from batadv_tt_local_remove()
With both locked sections moved to their own helpers, the only thing left in the cleanup section is the reference of the looked up entry. The "out" label is therefore only reached with a valid entry, except for the lookup failure at the very beginning. Return BATADV_NO_FLAGS directly when there is no entry and let the two remaining cases be an if/else. Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
931de98d39
commit
926013fd40
1 changed files with 10 additions and 16 deletions
Loading…
Add table
Add a link
Reference in a new issue