Page MenuHomeFreeBSD

sbuf(9): Refactor sbuf_newbuf into sbuf_new
AbandonedPublic

Authored by cem on Jul 22 2019, 4:53 PM.

Details

Reviewers
bapt
vangyzen
Summary

Code flow was somewhat difficult to read due to the combination of
multiple return sites and the 4x possible dynamic constructions of an
sbuf. (Future consideration: do we need all 4?) Refactored slightly to
improve legibility.

No functional change.

Diff Detail

Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 25457
Build 24078: arc lint + arc unit