aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-08-30 17:21:48 +0200
committerSven Eckelmann <sven@narfation.org>2026-08-30 20:05:57 +0200
commita5e5d2709d1001279093fd298101eb9d875a8ba0 (patch)
treee9db48afecae9a80595808231320e3662a063613 /scripts/Makefile.thinlto
parentbatman-adv: tt: extract allocation of new local entries (diff)
batman-adv: tt: replace forward gotos in batadv_tt_local_add()
batadv_tt_local_add() used two labels in the middle of the function to express which parts of the common tail have to be executed: "add_event" to announce a (re-)added client and "check_roaming" to skip that announcement. Jumping forward into the middle of a function makes it hard to see which path ends up sending an ADD event. Especially since the PENDING branch reached "add_event" while the branch right below it reached "check_roaming" instead. Express the same in an "added" variable and turn the two client cases into a plain if/else. The PENDING check returned early before the ROAM check could run, so it becomes an "else if". Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions