HomeFreeBSD

pctrie: drop meaningless neighbor check

Description

pctrie: drop meaningless neighbor check

In PCTRIE_INSERT_LOOKUP_{G,L}E, there is a test - if two pointers are
equal, replace one with a new value. The pointers can never be equal;
one points to a struct pctrie_node and the other is the (void*) cast
of a pointer to a field within a struct pctrie_node. So the tests and
assignments can be removed with no effect.

Reviewed by: bnovkov
Differential Revision: https://reviews.freebsd.org/D47277

Details

Provenance
dougmAuthored on Fri, Oct 25, 5:37 PM
Reviewer
bnovkov
Differential Revision
D47277: pctrie: drop meaningless neighbor check
Parents
rG72e15f76a1b3: libkldelf: add see_local parameter to elf_lookup_symbol
Branches
Unknown
Tags
Unknown