summaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4/cxgb4_main.c
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-09-30 09:17:12 +0000
committerDavid S. Miller <davem@davemloft.net>2010-10-03 22:07:02 -0700
commita069ec917457e44e214fc34e50acd185110fa81b (patch)
tree85177eb5db608396cc5f1825064732b0ffd08117 /drivers/net/cxgb4/cxgb4_main.c
parent1790c228fb3f57793160c0f0c20b55c398cab106 (diff)
downloadop-kernel-dev-a069ec917457e44e214fc34e50acd185110fa81b.zip
op-kernel-dev-a069ec917457e44e214fc34e50acd185110fa81b.tar.gz
cxgb4: remove a bogus PCI function number check
Remove a bogus PCI function number check from the driver's .remove method that causes pci_release_regions not to be called for function 0 if additional functions are attached and one of them is used as primary. Signed-off-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4/cxgb4_main.c')
-rw-r--r--drivers/net/cxgb4/cxgb4_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index 4fb08e3..22169a7 100644
--- a/drivers/net/cxgb4/cxgb4_main.c
+++ b/drivers/net/cxgb4/cxgb4_main.c
@@ -3863,7 +3863,7 @@ static void __devexit remove_one(struct pci_dev *pdev)
pci_disable_device(pdev);
pci_release_regions(pdev);
pci_set_drvdata(pdev, NULL);
- } else if (PCI_FUNC(pdev->devfn) > 0)
+ } else
pci_release_regions(pdev);
}
OpenPOWER on IntegriCloud