diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-10 20:12:51 +0900 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-09-21 15:43:16 +0200 |
commit | a0c7d83322521880caf8c9c1ef20a2a1cd5cb955 (patch) | |
tree | 6437db0e99345023ec5bf3228cfc766d5639385f /drivers/net/can/sja1000/ems_pci.c | |
parent | aa86858c356beb72af86107612ac854c0150d6db (diff) | |
download | linux-a0c7d83322521880caf8c9c1ef20a2a1cd5cb955.tar.bz2 |
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/ems_pci.c')
-rw-r--r-- | drivers/net/can/sja1000/ems_pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c index 3752342a678a..835921388e7b 100644 --- a/drivers/net/can/sja1000/ems_pci.c +++ b/drivers/net/can/sja1000/ems_pci.c @@ -207,7 +207,6 @@ static void ems_pci_del_card(struct pci_dev *pdev) kfree(card); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); } static void ems_pci_card_reset(struct ems_pci_card *card) |