diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 05:36:17 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-17 06:01:50 -0300 |
commit | 1e1159bb97cf4191849b4b03f77ab32977c2ece6 (patch) | |
tree | 98cc2c32e035b5a98ad42867477060ece37f5fc9 /drivers | |
parent | 593781e48d65646f9752540405c2ccbc908a7ac6 (diff) | |
download | op-kernel-dev-1e1159bb97cf4191849b4b03f77ab32977c2ece6.zip op-kernel-dev-1e1159bb97cf4191849b4b03f77ab32977c2ece6.tar.gz |
[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')
-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); } |