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
F154323354: D45877.id141929.diff
Mon, Apr 27, 8:28 PM
F154322829: D45877.id141929.diff
Mon, Apr 27, 8:23 PM
Unknown Object (File)
Sat, Apr 25, 7:21 AM
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
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