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
Unknown Object (File)
Thu, Dec 11, 8:16 PM
Unknown Object (File)
Tue, Nov 25, 10:29 PM
Unknown Object (File)
Mon, Nov 24, 3:22 AM
Unknown Object (File)
Sat, Nov 15, 11:25 PM
Unknown Object (File)
Sat, Nov 15, 8:43 PM
Unknown Object (File)
Sat, Nov 15, 6:42 PM
Unknown Object (File)
Nov 15 2025, 12:17 PM
Unknown Object (File)
Nov 15 2025, 11:23 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable