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

Details

Provenance
jhbAuthored on Aug 8 2024, 7:05 PM
Differential Revision
D45877: pci: Narrow the scope of recently-added PCI_IOV #ifdefs
Parents
rGd8ff42e81684: pipe: keep uio_iovcnt consistent
Branches
Unknown
Tags
Unknown