Skip to content

Commit 2a2ee99

Browse files
Jingoo Handavem330
authored andcommitted
net: tc35815: remove unnecessary pci_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent df5d385 commit 2a2ee99

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/net/ethernet/toshiba/tc35815.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,6 @@ static void tc35815_remove_one(struct pci_dev *pdev)
887887
mdiobus_free(lp->mii_bus);
888888
unregister_netdev(dev);
889889
free_netdev(dev);
890-
pci_set_drvdata(pdev, NULL);
891890
}
892891

893892
static int

0 commit comments

Comments
 (0)