PCI/MSI: Set pci_dev:: Msi_enabled late
authorThomas Gleixner <tglx@linutronix.de>
Wed, 19 Mar 2025 10:56:49 +0000 (11:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 9 Apr 2025 18:47:29 +0000 (20:47 +0200)
commitb0c44a5ec3552f89c47dac9903d99c22d796d87f
treef7c70cd8b50f2bce8ddeba162081e111594409e0
parent497f68cff6219713a66a70a45e1fa4caf237a76b
PCI/MSI: Set pci_dev:: Msi_enabled late

The comment claiming that pci_dev::msi_enabled has to be set across setup
is a leftover from ancient code versions. Nothing in the setup code
requires the flag to be set anymore.

Set it in the success path and remove the extra goto label.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/all/20250319105506.383222333@linutronix.de
drivers/pci/msi/msi.c