cxgb4: remove a bogus PCI function number check
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/net/cxgb4/cxgb4_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb4/cxgb4_main.c +1 -1
@@ -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); }
Signature · 1 line
1.5.4
From: Dimitris Michailidis <[email protected]>
Date: Thu, 30 Sep 2010 12:17:12 -0700
Quoted 5 lines
Remove a bogus PCI function number check from the driver's .remove method that causes
pci_release_regionsnot to be called for function 0 if additional functions are attached and one of them is used as primary.Signed-off-by Dimitris Michailidis <[email protected]>
Applied, thanks.