Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ce5c9f2 authored by Devendra Naga's avatar Devendra Naga Committed by David S. Miller
Browse files

r6040: remove duplicate call to the pci_set_drvdata



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

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c56bf6fe
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);