diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2014-02-18 11:08:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-18 15:33:30 -0500 |
commit | f6f273bfe1e9d678de3598feb7906138cfe68b71 (patch) | |
tree | 1edeb28a124e473ca494ac1b3a1c7cf228352755 /drivers/net/ethernet | |
parent | c32ad224e5abda89cf47a80efce5d4e944674d8d (diff) | |
download | op-kernel-dev-f6f273bfe1e9d678de3598feb7906138cfe68b71.zip op-kernel-dev-f6f273bfe1e9d678de3598feb7906138cfe68b71.tar.gz |
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 <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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c index 0899c09..509fed9 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); } |