MSI: Factorize common code in pci_msi_supported()