cxgb4vf: Remove superfluous call to pci_disable_msix()
authorAlexander Gordeev <agordeev@redhat.com>
Tue, 18 Feb 2014 10:08:00 +0000 (11:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 20:33:30 +0000 (15:33 -0500)
There is no need to call pci_disable_msix() in case
the previous call to pci_enable_msix() failed

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Casey Leedom <leedom@chelsio.com>
Cc: netdev@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c

index 0899c098359446346f7abe1939ac214705fd0acb..509fed946a2c924788207a6ef37f46a939d1062d 100644 (file)
@@ -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);
        }