diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-23 10:37:24 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 09:13:54 -0700 |
commit | b9be2c60fce7a93723403488a2f5d508ff7d3d2f (patch) | |
tree | 68039721b898d8b3f2583613083450cb6aea6740 /drivers/misc | |
parent | 8221b3a8480bcfdc68bae0ee00bbf0d313759149 (diff) | |
download | linux-b9be2c60fce7a93723403488a2f5d508ff7d3d2f.tar.gz linux-b9be2c60fce7a93723403488a2f5d508ff7d3d2f.tar.bz2 linux-b9be2c60fce7a93723403488a2f5d508ff7d3d2f.zip |
misc: mei: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/pci-me.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index 1b3844e82379..1b8a4c6d0cf8 100644 --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c @@ -239,7 +239,6 @@ static void mei_me_remove(struct pci_dev *pdev) free_irq(pdev->irq, dev); pci_disable_msi(pdev); - pci_set_drvdata(pdev, NULL); if (hw->mem_addr) pci_iounmap(pdev, hw->mem_addr); |