HomeFreeBSD

cam_periph: switch from negative logic to positive logic

Description

cam_periph: switch from negative logic to positive logic

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
Differential Revision: https://reviews.freebsd.org/D32681

Details

Provenance
impAuthored on Nov 5 2021, 2:56 PM
Differential Revision
D32681: cam_periph: switch from negative logic to positive logic
Parents
rG00f79c97a4f2: cam_periph: Remove vestigial "scbus" comparison
Branches
Unknown
Tags
Unknown