Message ID | 88e8e62d2dd643c9237c9cdb86fe19444f3651b8.1392717503.git.agordeev@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show |
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); }
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 --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)