PCI: dwc: Free MSI in dw_pcie_host_init() error path
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Fri, 29 Mar 2019 11:57:54 +0000 (11:57 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 7 May 2019 13:53:53 +0000 (08:53 -0500)
commit9e2b5de5604a6ff2626c51e77014d92c9299722c
tree1aa1265e4c1aeeb5b2e730e354c6dece5f658392
parentdc69a3d567941784c3d00e1d0834582b42b0b3e7
PCI: dwc: Free MSI in dw_pcie_host_init() error path

If we ever did MSI-related initializations, we need to call
dw_pcie_free_msi() in the error code path.

Remove the IS_ENABLED(CONFIG_PCI_MSI) check for MSI init because
pci_msi_enabled() already has a stub for !CONFIG_PCI_MSI.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-host.c