From: Alexander Gordeev Date: Tue, 18 Feb 2014 10:08:00 +0000 (+0100) Subject: cxgb4vf: Remove superfluous call to pci_disable_msix() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6f273bfe1e9d678de3598feb7906138cfe68b71;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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); }