git: d2d0d6cb47c8 - main - subr_pctrie: fix a comment
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Oct 2024 02:47:32 UTC
The branch main has been updated by dougm:
URL: https://cgit.FreeBSD.org/src/commit/?id=d2d0d6cb47c8568f34fff83477284dd3365b6298
commit d2d0d6cb47c8568f34fff83477284dd3365b6298
Author: Doug Moore <dougm@FreeBSD.org>
AuthorDate: 2024-10-21 02:46:30 +0000
Commit: Doug Moore <dougm@FreeBSD.org>
CommitDate: 2024-10-21 02:46:30 +0000
subr_pctrie: fix a comment
A comment used least > instead of greatest <. Fix it.
---
sys/kern/subr_pctrie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c
index 50216287845f..ea1c1cf881d2 100644
--- a/sys/kern/subr_pctrie.c
+++ b/sys/kern/subr_pctrie.c
@@ -958,7 +958,7 @@ pctrie_iter_lookup_le(struct pctrie_iter *it, uint64_t index)
/*
* 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.
+ * > index, back up to find a subtrie with the greatest value < index.
*/
if (pctrie_isleaf(node) ?
(m = pctrie_toval(node)) == NULL || *m > index :