Skip to content

Commit 42cd36a

Browse files
Jingoo Handavem330
authored andcommitted
wan: wanxl: 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 9e2c921 commit 42cd36a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/wan/wanxl.c

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

543543
pci_release_regions(pdev);
544544
pci_disable_device(pdev);
545-
pci_set_drvdata(pdev, NULL);
546545
kfree(card);
547546
}
548547

0 commit comments

Comments
 (0)