Page MenuHomeFreeBSD

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

Authored by jhb on Jul 5 2024, 3:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 22, 11:39 PM
Unknown Object (File)
Tue, Apr 21, 10:11 PM
Unknown Object (File)
Tue, Apr 21, 9:54 PM
Unknown Object (File)
Fri, Apr 17, 6:31 AM
Unknown Object (File)
Fri, Apr 17, 6:24 AM
Unknown Object (File)
Tue, Apr 14, 9:13 AM
Unknown Object (File)
Mon, Apr 13, 10:39 PM
Unknown Object (File)
Sun, Apr 12, 3:03 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable