Re: nd6: DAD: Remove useless variable, simplify code

2022-11-28 Thread Alexander Bluhm
On Sun, Nov 27, 2022 at 06:42:48PM +, Klemens Nanni wrote: > Using a local `duplicate' variable to defer the actual checks by a few > lines, interleaved with comments (saying the same thing but negated), > is harder to follow that neccessary. > > Fold the logic and merge comments (remove the

nd6: DAD: Remove useless variable, simplify code

2022-11-27 Thread Klemens Nanni
Using a local `duplicate' variable to defer the actual checks by a few lines, interleaved with comments (saying the same thing but negated), is harder to follow that neccessary. Fold the logic and merge comments (remove the last obvious one missing a negation) to save 20 LOC. Feedback?