diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-22 21:37:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 12:13:54 -0400 |
commit | b9be2c60fce7a93723403488a2f5d508ff7d3d2f (patch) | |
tree | 68039721b898d8b3f2583613083450cb6aea6740 /drivers/misc | |
parent | 8221b3a8480bcfdc68bae0ee00bbf0d313759149 (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')
-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) | |||
239 | 239 | ||
240 | free_irq(pdev->irq, dev); | 240 | free_irq(pdev->irq, dev); |
241 | pci_disable_msi(pdev); | 241 | pci_disable_msi(pdev); |
242 | pci_set_drvdata(pdev, NULL); | ||
243 | 242 | ||
244 | if (hw->mem_addr) | 243 | if (hw->mem_addr) |
245 | pci_iounmap(pdev, hw->mem_addr); | 244 | pci_iounmap(pdev, hw->mem_addr); |