PCI/MSI: Make msix_update_entries() smarter
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:27:46 +0000 (23:27 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Dec 2021 10:52:21 +0000 (11:52 +0100)
commit7112158d97a1539b217c360d379724ac3ee99fa3
treee676074b091067c7fb5e4140a0a0f32f9a1ebd47
parent29a03ada4a007067d5427a6a1b7ba1dc7566ea2e
PCI/MSI: Make msix_update_entries() smarter

No need to walk the descriptors and check for each one whether the entries
pointer function argument is NULL. Do it once.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20211206210224.600351129@linutronix.de
drivers/pci/msi.c