Page MenuHomeFreeBSD

cam_periph: switch from negative logic to positive logic
ClosedPublic

Authored by imp on Oct 27 2021, 5:45 AM.
Tags
None
Referenced Files
F159674017: D32681.id97517.diff
Tue, Jun 16, 10:49 PM
Unknown Object (File)
Tue, Jun 9, 1:00 PM
Unknown Object (File)
Mon, Jun 8, 10:22 PM
Unknown Object (File)
Tue, May 19, 10:01 AM
Unknown Object (File)
Tue, May 19, 5:32 AM
Unknown Object (File)
Tue, May 19, 4:17 AM
Unknown Object (File)
May 15 2026, 10:34 PM
Unknown Object (File)
May 13 2026, 1:09 AM
Subscribers
None

Details

Summary

When scanning the resources that are wired for this driver, skip any
that whose number doesn't match newunit. They aren't relevant. Switch to
positive logic to break out of the loop (and thus go to the next unit)
if we find either a target resource or an at resource. This makes the
code easier to read and modify.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42393
Build 39281: arc lint + arc unit