]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sbuf(9): Refactor sbuf_newbuf into sbuf_new
authorcem <cem@FreeBSD.org>
Wed, 7 Aug 2019 19:25:56 +0000 (19:25 +0000)
committercem <cem@FreeBSD.org>
Wed, 7 Aug 2019 19:25:56 +0000 (19:25 +0000)
commit07683c3cc6a2b5b6a980c40d6d0fd1e3ca37da8d
tree0f6e1f018e20d8472e21a0cba26b85b88f4ad4b1
parentada2b1cd07d8d857e649fb2403561c429738e0a4
sbuf(9): Refactor sbuf_newbuf into sbuf_new

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.

Sponsored by: Dell EMC Isilon
sys/kern/subr_sbuf.c