HomeFreeBSD

pci: Narrow the scope of recently-added PCI_IOV #ifdefs

Description

pci: Narrow the scope of recently-added PCI_IOV #ifdefs

Push the #ifdefs down into the function body instead of defining
functions conditionally for ease of readability. These aren't
critical paths, so one extra branch in the !PCI_IOV case is not a big
deal.

Requested by: jrtc27
Differential Revision: https://reviews.freebsd.org/D45877

(cherry picked from commit 971c9f57d7e6b55161fecc008e19f00ccaba8060)

Details

Provenance
jhbAuthored on Aug 8 2024, 7:05 PM
Differential Revision
D45877: pci: Narrow the scope of recently-added PCI_IOV #ifdefs
Parents
rG60662799b126: pci: Only add special VF handling for direct children in bus methods
Branches
Unknown
Tags
Unknown