diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 15:12:51 +0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 17:43:16 +0400 |
commit | a0c7d83322521880caf8c9c1ef20a2a1cd5cb955 (patch) | |
tree | 6437db0e99345023ec5bf3228cfc766d5639385f /drivers/net/can/sja1000/kvaser_pci.c | |
parent | aa86858c356beb72af86107612ac854c0150d6db (diff) | |
download | linux-a0c7d83322521880caf8c9c1ef20a2a1cd5cb955.tar.xz |
can: sja1000: 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: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/sja1000/kvaser_pci.c')
-rw-r--r-- | drivers/net/can/sja1000/kvaser_pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/sja1000/kvaser_pci.c b/drivers/net/can/sja1000/kvaser_pci.c index 217585b97cd3..087b13bd300e 100644 --- a/drivers/net/can/sja1000/kvaser_pci.c +++ b/drivers/net/can/sja1000/kvaser_pci.c @@ -387,7 +387,6 @@ static void kvaser_pci_remove_one(struct pci_dev *pdev) pci_release_regions(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); } static struct pci_driver kvaser_pci_driver = { |