Commit c6b9bad2 authored by Alexander Gordeev's avatar Alexander Gordeev Committed by Christoph Hellwig
Browse files

csiostor: Remove superfluous call to pci_disable_msix()



There is no need to call pci_disable_msix() in case
the previous call to pci_enable_msix() failed

Signed-off-by: default avatarAlexander Gordeev <agordeev@redhat.com>
Reviewed-by: default avatarTomas Henzl <thenzl@redhat.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent e149fc13
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -529,10 +529,8 @@ csio_enable_msix(struct csio_hw *hw)
			csio_reduce_sqsets(hw, cnt - extra);
		}
	} else {
		if (rv > 0) {
			pci_disable_msix(hw->pdev);
		if (rv > 0)
			csio_info(hw, "Not using MSI-X, remainder:%d\n", rv);
		}

		kfree(entries);
		return -ENOMEM;