Skip to contentSkip to conversation

r6040: remove duplicate call to the pci_set_drvdata

PATCH Applied Devendra Naga 2 participants 2 messages Jul 7, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r6040: remove duplicate call to the pci_set_drvdata

pci_set_drvdata is called twice at the remove path of driver, call it once.

---
 drivers/net/ethernet/rdc/r6040.c |    1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/rdc/r6040.c +0 -1
index d1827e8..9acc026 100644
@@ -1256,7 +1256,6 @@ static void __devexit r6040_remove_one(struct pci_dev *pdev)
 	kfree(lp->mii_bus->irq);
 	mdiobus_free(lp->mii_bus);
 	netif_napi_del(&lp->napi);
-	pci_set_drvdata(pdev, NULL);
 	pci_iounmap(pdev, lp->base);
 	pci_release_regions(pdev);
 	free_netdev(dev);
Signature · 1 line
1.7.9.5