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)
Mar 28 2024, 2:10 AM
Unknown Object (File)
Mar 7 2024, 11:58 PM
Unknown Object (File)
Feb 23 2024, 12:14 AM
Unknown Object (File)
Feb 23 2024, 12:14 AM
Unknown Object (File)
Feb 23 2024, 12:14 AM
Unknown Object (File)
Feb 22 2024, 6:46 AM
Unknown Object (File)
Dec 23 2023, 12:08 AM
Unknown Object (File)
Dec 23 2023, 12:08 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