HomeFreeBSD

pci: switch logic a little

Description

pci: switch logic a little

If we find a match, then assign it. Flip the logic in the if and assign
the unit rather than continuing if it doesn't match. Will make it easier
to expand to other matching schemes.

Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D32779

Details

Provenance
impAuthored on Feb 28 2022, 9:27 PM
Reviewer
jhb
Differential Revision
D32779: pci: switch logic a little
Parents
rGd0a20e401ef1: Add UEFI locator for bus_get_device_path, pci acpi
Branches
Unknown
Tags
Unknown