Page MenuHomeFreeBSD

pctrie_lookup_range: don't write the null
ClosedPublic

Authored by dougm on May 14 2025, 4:21 PM.
Tags
None
Referenced Files
F164146608: D50353.id155455.diff
Wed, Jul 29, 4:00 AM
Unknown Object (File)
Tue, Jul 28, 3:14 PM
Unknown Object (File)
Tue, Jul 28, 2:48 PM
Unknown Object (File)
Sat, Jul 25, 4:48 PM
Unknown Object (File)
Mon, Jul 20, 10:06 PM
Unknown Object (File)
Tue, Jul 14, 8:44 PM
Unknown Object (File)
Fri, Jul 3, 10:01 AM
Unknown Object (File)
Fri, Jul 3, 6:50 AM
Subscribers

Details

Summary

There's no reason to write the NULL pointer value into the array when pctrie_lookup_range finds an item missing.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm requested review of this revision.May 14 2025, 4:21 PM
dougm created this revision.
This revision is now accepted and ready to land.May 14 2025, 11:43 PM
This revision was automatically updated to reflect the committed changes.