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
F137519784: D32681.diff
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)
Sat, Nov 15, 12:17 PM
Unknown Object (File)
Sat, Nov 15, 11:23 AM
Unknown Object (File)
Sun, Nov 9, 6:25 AM
Unknown Object (File)
Tue, Nov 4, 8:38 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