Skip to content

Commit

Permalink
cxgb4: remove a bogus PCI function number check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dimitris Michailidis authored and David S. Miller committed Oct 4, 2010
1 parent 1790c22 commit a069ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cxgb4/cxgb4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a069ec9

Please sign in to comment.