Skip to content

Commit 9e2c921

Browse files
Jingoo Handavem330
authored andcommitted
wan: pci200syn: 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 06bbd68 commit 9e2c921

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/wan/pci200syn.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ static void pci200_pci_remove_one(struct pci_dev *pdev)
260260

261261
pci_release_regions(pdev);
262262
pci_disable_device(pdev);
263-
pci_set_drvdata(pdev, NULL);
264263
if (card->ports[0].netdev)
265264
free_netdev(card->ports[0].netdev);
266265
if (card->ports[1].netdev)

0 commit comments

Comments
 (0)