x86/pci: Return pci_mmconfig_add() failure early
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Nov 2023 18:36:42 +0000 (12:36 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 5 Dec 2023 16:56:59 +0000 (10:56 -0600)
commitf12659832612dac746bd57e20956aabb373a00e7
tree52b8a6033d22e35bb28bf634b357a33e15679940
parentf284dff47b6d00efe1f774d25e9d74874e78c600
x86/pci: Return pci_mmconfig_add() failure early

If pci_mmconfig_alloc() fails, return the failure early so it's obvious
that the failure is the exception, and the success is the normal case.  No
functional change intended.

Link: https://lore.kernel.org/r/20231121183643.249006-9-helgaas@kernel.org
Tested-by: Tomasz Pala <gotar@polanet.pl>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/pci/mmconfig-shared.c