Commit 1e1159bb authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab

[media] pci: pluto2: Remove redundant pci_set_drvdata

Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 593781e4
...@@ -736,7 +736,6 @@ static int pluto2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -736,7 +736,6 @@ static int pluto2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
err_pci_disable_device: err_pci_disable_device:
pci_disable_device(pdev); pci_disable_device(pdev);
err_kfree: err_kfree:
pci_set_drvdata(pdev, NULL);
kfree(pluto); kfree(pluto);
goto out; goto out;
} }
...@@ -765,7 +764,6 @@ static void pluto2_remove(struct pci_dev *pdev) ...@@ -765,7 +764,6 @@ static void pluto2_remove(struct pci_dev *pdev)
pci_iounmap(pdev, pluto->io_mem); pci_iounmap(pdev, pluto->io_mem);
pci_release_regions(pdev); pci_release_regions(pdev);
pci_disable_device(pdev); pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
kfree(pluto); kfree(pluto);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment