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

Commit f6f273bf authored by Alexander Gordeev's avatar Alexander Gordeev Committed by David S. Miller
Browse files

cxgb4vf: 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>
Cc: Casey Leedom <leedom@chelsio.com>
Cc: netdev@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c32ad224
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2475,7 +2475,6 @@ static int enable_msix(struct adapter *adapter)
		for (i = 0; i < want; ++i)
			adapter->msix_info[i].vec = entries[i].vector;
	} else if (err > 0) {
		pci_disable_msix(adapter->pdev);
		dev_info(adapter->pdev_dev, "only %d MSI-X vectors left,"
			 " not using MSI-X\n", err);
	}