From: Sachin Kamat Date: Fri, 20 Sep 2013 08:36:15 +0000 (-0300) Subject: [media] pci: dm1105: Remove redundant pci_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3982ccd2b3c455e75b58a01505e0f55bcc686947;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [media] pci: dm1105: Remove redundant pci_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/dm1105/dm1105.c b/drivers/media/pci/dm1105/dm1105.c index ab797fe466d2..e985e3b0f647 100644 --- a/drivers/media/pci/dm1105/dm1105.c +++ b/drivers/media/pci/dm1105/dm1105.c @@ -1178,7 +1178,6 @@ err_pci_release_regions: err_pci_disable_device: pci_disable_device(pdev); err_kfree: - pci_set_drvdata(pdev, NULL); kfree(dev); return ret; } @@ -1211,7 +1210,6 @@ static void dm1105_remove(struct pci_dev *pdev) pci_iounmap(pdev, dev->io_mem); pci_release_regions(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); dm1105_devcount--; kfree(dev); }