Page MenuHomeFreeBSD

pctrie: reduce code duplication in PCTRIE_INSERT_*
ClosedPublic

Authored by dougm on Oct 25 2024, 9:56 PM.
Tags
None
Referenced Files
F108539523: D47288.id145470.diff
Sun, Jan 26, 2:23 AM
Unknown Object (File)
Sun, Jan 19, 10:47 AM
Unknown Object (File)
Fri, Jan 17, 11:38 PM
Unknown Object (File)
Mon, Jan 13, 3:58 PM
Unknown Object (File)
Mon, Jan 13, 3:55 PM
Unknown Object (File)
Dec 26 2024, 1:19 PM
Unknown Object (File)
Dec 6 2024, 1:54 AM
Unknown Object (File)
Nov 28 2024, 7:47 PM
Subscribers

Details

Summary

The four flavors of PCTRIE_INSERT inline functions share a few lines of code. Extract that code into a new function and invoke it from the others to reduce code duplication. No behavior change expected.

Diff Detail

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

Event Timeline

dougm requested review of this revision.Oct 25 2024, 9:56 PM
dougm created this revision.
This revision is now accepted and ready to land.Oct 28 2024, 6:55 PM