PCI/MSI: Simplify pci_irq_get_affinity()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 10 Dec 2021 22:19:26 +0000 (23:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:16:41 +0000 (22:16 +0100)
commitf48235900182d64537c6e8f8dc0932b57a1a0638
tree33d6ac834100830052f76b7b75271be16844598e
parent82ff8e6b78fc4587a4255301f0a283506daf11b6
PCI/MSI: Simplify pci_irq_get_affinity()

Replace open coded MSI descriptor chasing and use the proper accessor
functions instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211210221814.900929381@linutronix.de
drivers/pci/msi/msi.c