Page MenuHomeFreeBSD

D47207.1784998680.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D47207.1784998680.diff

diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c
--- a/sys/kern/subr_pctrie.c
+++ b/sys/kern/subr_pctrie.c
@@ -801,9 +801,7 @@
* If no such node was found, and instead this path leads only to nodes
* < index, back up to find a subtrie with the least value > index.
*/
- if (pctrie_isleaf(node) ?
- (m = pctrie_toval(node)) == NULL || *m < index :
- node->pn_owner < index) {
+ if (node == PCTRIE_NULL || *pctrie_toval(node) < index) {
/* Climb the path to find a node with a descendant > index. */
while (it->top != 0) {
node = it->path[it->top - 1];
@@ -960,9 +958,7 @@
* If no such node was found, and instead this path leads only to nodes
* > index, back up to find a subtrie with the greatest value < index.
*/
- if (pctrie_isleaf(node) ?
- (m = pctrie_toval(node)) == NULL || *m > index :
- node->pn_owner > index) {
+ if (node == PCTRIE_NULL || *pctrie_toval(node) > index) {
/* Climb the path to find a node with a descendant < index. */
while (it->top != 0) {
node = it->path[it->top - 1];

File Metadata

Mime Type
text/plain
Expires
Sat, Jul 25, 4:58 PM (4 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29257751
Default Alt Text
D47207.1784998680.diff (1 KB)

Event Timeline