From: Alexander Gordeev Date: Wed, 12 Mar 2014 21:08:49 +0000 (-0500) Subject: [SCSI] ipr: Get rid of superfluous call to pci_disbale_msi/msix() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=739910de5bfdd47ba77a19fa54bad3b52ac0d633;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [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: Alexander Gordeev Signed-off-by: Wen Xiong Acked-by: Brian King Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 25dc6e594f71..09fdfd747e34 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -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; }