Thomas Gleixner dd7f5a11ac PCI/MSI: Remove bogus warning in pci_irq_get_affinity()
The recent overhaul of pci_irq_get_affinity() introduced a regression when
pci_irq_get_affinity() is called for an MSI-X interrupt which was not
allocated with affinity descriptor information.

The original code just returned a NULL pointer in that case, but the rework
added a WARN_ON() under the assumption that the corresponding WARN_ON() in
the MSI case can be applied to MSI-X as well.

In fact the MSI warning in the original code does not make sense either
because it's legitimate to invoke pci_irq_get_affinity() for a MSI
interrupt which was not allocated with affinity descriptor information.

Remove it and just return NULL as the original code did.

Fixes: f48235900182 ("PCI/MSI: Simplify pci_irq_get_affinity()")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/87ee4n38sm.ffs@tglx
2022-02-04 09:54:20 +01:00
..
2022-01-13 09:57:52 -06:00
2022-01-13 09:57:52 -06:00
2022-01-13 09:57:52 -06:00
2021-06-16 17:20:40 -05:00
2022-01-07 20:43:23 -06:00
2022-01-16 08:08:11 +02:00
2021-11-02 19:06:30 +01:00
2021-12-09 11:52:21 +01:00
2022-01-16 08:08:11 +02:00
2021-11-06 14:36:12 -07:00
2022-01-16 08:08:11 +02:00
2022-01-22 08:33:37 +02:00
2022-01-16 08:08:11 +02:00
2021-02-10 16:46:29 -06:00
2021-09-28 13:43:17 -05:00
2020-08-05 18:23:14 -05:00