diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2014-02-18 11:07:57 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-18 15:33:29 -0500 |
commit | c0b2551681e8fac72c189c76e7ec8b19002048b3 (patch) | |
tree | 61cbe80edcd8f148dcac304bf3026f110acea62c /drivers/net/ethernet/chelsio/cxgb3 | |
parent | 43c20200d13146b2e51a0bd069a566e582c75c9d (diff) | |
download | talos-op-linux-c0b2551681e8fac72c189c76e7ec8b19002048b3.tar.gz talos-op-linux-c0b2551681e8fac72c189c76e7ec8b19002048b3.zip |
cxgb3: 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 <agordeev@redhat.com>
Cc: Santosh Raspatur <santosh@chelsio.com>
Cc: netdev@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb3')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c index 45d77334d7d9..b72d2ed9dad4 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c +++ b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c @@ -3097,9 +3097,6 @@ static int cxgb_enable_msix(struct adapter *adap) while ((err = pci_enable_msix(adap->pdev, entries, vectors)) > 0) vectors = err; - if (err < 0) - pci_disable_msix(adap->pdev); - if (!err && vectors < (adap->params.nports + 1)) { pci_disable_msix(adap->pdev); err = -1; |