diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 12:36:21 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-17 13:03:57 +0400 |
commit | ec9bdd22db09df09d8775d13a0b9ff995ac87026 (patch) | |
tree | fbd2d4d740885778783083c9f6746cfa7f4b4440 /drivers/media/pci/ngene | |
parent | b17a87be20efbeef05bec0f41807004229f2991f (diff) | |
download | linux-ec9bdd22db09df09d8775d13a0b9ff995ac87026.tar.xz |
[media] pci: ngene: 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/ngene')
-rw-r--r-- | drivers/media/pci/ngene/ngene-core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/pci/ngene/ngene-core.c b/drivers/media/pci/ngene/ngene-core.c index 37ebc42392ad..8402ed6d886e 100644 --- a/drivers/media/pci/ngene/ngene-core.c +++ b/drivers/media/pci/ngene/ngene-core.c @@ -1648,7 +1648,6 @@ void ngene_remove(struct pci_dev *pdev) cxd_detach(dev); ngene_stop(dev); ngene_release_buffers(dev); - pci_set_drvdata(pdev, NULL); pci_disable_device(pdev); } @@ -1702,6 +1701,5 @@ fail1: ngene_release_buffers(dev); fail0: pci_disable_device(pci_dev); - pci_set_drvdata(pci_dev, NULL); return stat; } |