diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 08:36:17 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-17 09:01:50 (GMT) |
commit | 1e1159bb97cf4191849b4b03f77ab32977c2ece6 (patch) | |
tree | 98cc2c32e035b5a98ad42867477060ece37f5fc9 /drivers/media/pci/pluto2 | |
parent | 593781e48d65646f9752540405c2ccbc908a7ac6 (diff) | |
download | linux-1e1159bb97cf4191849b4b03f77ab32977c2ece6.tar.xz |
[media] pci: pluto2: Remove redundant pci_set_drvdata
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/pluto2')
-rw-r--r-- | drivers/media/pci/pluto2/pluto2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/pci/pluto2/pluto2.c b/drivers/media/pci/pluto2/pluto2.c index 4938285..8164d74 100644 --- a/drivers/media/pci/pluto2/pluto2.c +++ b/drivers/media/pci/pluto2/pluto2.c @@ -736,7 +736,6 @@ err_pci_release_regions: err_pci_disable_device: pci_disable_device(pdev); err_kfree: - pci_set_drvdata(pdev, NULL); kfree(pluto); goto out; } @@ -765,7 +764,6 @@ static void pluto2_remove(struct pci_dev *pdev) pci_iounmap(pdev, pluto->io_mem); pci_release_regions(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); kfree(pluto); } |