]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Convert device-specific ACS quirks from NULL termination to ARRAY_SIZE
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 9 Aug 2018 21:45:47 +0000 (16:45 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 9 Aug 2018 22:47:44 +0000 (17:47 -0500)
commitb56f53990765cfb0dd66b09205693c78c82f5d4c
tree9951c50750fb38742ea3cb63985b4a9bbc30138e
parentbc60a648dec5ff50aadb2626d0f103ec2d0c3a61
PCI: Convert device-specific ACS quirks from NULL termination to ARRAY_SIZE

Convert the search for device-specific ACS enable quirks from searching a
NULL-terminated array to iterating through the array, which is always
fixed-size anyway.  No functional change intended.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
[bhelgaas: changelog, split to separate patch for reviewability]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
drivers/pci/quirks.c