network/ndisc: several cleanups for ndisc_remove_route()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Nov 2024 17:06:21 +0000 (02:06 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Nov 2024 09:08:25 +0000 (18:08 +0900)
commit42d9660f10e928bfb575712b1a01773bbf8cf86f
tree81e7eac3e0c6149440257381af49acc7b1595e19
parent2437ebee20ed9ce1e789c866728a73f244f80318
network/ndisc: several cleanups for ndisc_remove_route()

- drop unnecessary call of ndisc_set_route_priority() at the beginning,
  as it is called later in the loop below,
- use RET_GATHER() and remove all possible routes even if failed.
src/network/networkd-ndisc.c