PCI/MSI: Move descriptor counting on allocation fail to the legacy code
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:28:00 +0000 (23:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Dec 2021 10:52:23 +0000 (11:52 +0100)
commit60bf9b33c82c0e040a98272d7ff4f5a52e7469d6
treef64e489c481820bfd64c8b026463d93244bebc66
parent890337624e1fa2da079fc1c036a62d178c985280
PCI/MSI: Move descriptor counting on allocation fail to the legacy code

The irqdomain code already returns the information. Move the loop to the
legacy code.

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>
Link: https://lore.kernel.org/r/20211206210225.101336873@linutronix.de
drivers/pci/msi/legacy.c
drivers/pci/msi/msi.c