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)
Wed, Oct 16, 8:48 AM
Unknown Object (File)
Oct 2 2024, 1:31 AM
Unknown Object (File)
Sep 30 2024, 9:23 PM
Unknown Object (File)
Sep 26 2024, 9:39 PM
Unknown Object (File)
Sep 26 2024, 5:40 AM
Unknown Object (File)
Sep 23 2024, 3:28 AM
Unknown Object (File)
Sep 19 2024, 2:48 PM
Unknown Object (File)
Sep 19 2024, 12:51 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