summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/pci-me.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-23 10:37:24 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 09:13:54 -0700
commitb9be2c60fce7a93723403488a2f5d508ff7d3d2f (patch)
tree68039721b898d8b3f2583613083450cb6aea6740 /drivers/misc/mei/pci-me.c
parent8221b3a8480bcfdc68bae0ee00bbf0d313759149 (diff)
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/mei/pci-me.c')
-rw-r--r--drivers/misc/mei/pci-me.c1
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);