From f6f273bfe1e9d678de3598feb7906138cfe68b71 Mon Sep 17 00:00:00 2001 From: Alexander Gordeev Date: Tue, 18 Feb 2014 11:08:00 +0100 Subject: [PATCH] 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: Alexander Gordeev Cc: Casey Leedom Cc: netdev@vger.kernel.org Cc: linux-pci@vger.kernel.org Signed-off-by: David S. Miller --- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c index 0899c0983594..509fed946a2c 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c @@ -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); } -- 2.20.1