HomeFreeBSD

CAM: Remove return value from xpt_path_sbuf()

Description

CAM: Remove return value from xpt_path_sbuf()

It is wrong to call sbuf_len() on third-party sbuf. If that sbuf
has a drain function, it ends up in assertion. But even would it
work, it would return not newly written length, but the full one.
Searching through the sources I don't see this value used.

Details

Provenance
mavAuthored on Nov 22 2023, 8:10 PM
Parents
rG7fa08d415283: kern_racct.c: Don't compile if RACCT undefined
Branches
Unknown
Tags
Unknown