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

(cherry picked from commit d21e71efce3963b068ccaa807a099b591dc220e9)

Details

Provenance
emasteAuthored on Feb 3 2022, 6:51 PM
Reviewer
bapt
Differential Revision
D34159: dma: use canonical getline() loop
Parents
rG7b8bb67135f2: igc: Don't start in promiscious mode by default
Branches
Unknown
Tags
Unknown