HomeFreeBSD

dma: use canonical getline() loop

Description

dma: use canonical getline() loop

getline() returns -1 on erorr or EOF, so use that condition instead of
feof() and check that there was no error after the loop exits.

Reviewed by: bapt, kevans (both earlier)
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34159

Details

Provenance
emasteAuthored on Feb 3 2022, 6:51 PM
Reviewer
bapt
Differential Revision
D34159: dma: use canonical getline() loop
Parents
rG0af463e6619c: ffs_read(): lock buffers after snaplk with LK_NOWITNESS
Branches
Unknown
Tags
Unknown