Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 739910de authored by Alexander Gordeev's avatar Alexander Gordeev Committed by James Bottomley
Browse files

[SCSI] ipr: Get rid of superfluous call to pci_disbale_msi/msix()



There is no need to call pci_disable_msi() or pci_disable_msix()
in case the call to pci_enable_msi() or pci_enable_msix() failed.

Signed-off-by: default avatarAlexander Gordeev <agordeev@redhat.com>
Signed-off-by: default avatarWen Xiong <wenxiong@linux.vnet.ibm.com>
Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 6270e593
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -9329,7 +9329,6 @@ static int ipr_enable_msix(struct ipr_ioa_cfg *ioa_cfg)

	if (err < 0) {
		ipr_wait_for_pci_err_recovery(ioa_cfg);
		pci_disable_msix(ioa_cfg->pdev);
		return err;
	}

@@ -9353,7 +9352,6 @@ static int ipr_enable_msi(struct ipr_ioa_cfg *ioa_cfg)

	if (err < 0) {
		ipr_wait_for_pci_err_recovery(ioa_cfg);
		pci_disable_msi(ioa_cfg->pdev);
		return err;
	}