From: Sachin Kamat Date: Fri, 20 Sep 2013 08:36:21 +0000 (-0300) Subject: [media] pci: ngene: Remove redundant pci_set_drvdata X-Git-Tag: firefly_0821_release~176^2~3573^2~1236 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ec9bdd22db09df09d8775d13a0b9ff995ac87026;p=firefly-linux-kernel-4.4.55.git [media] pci: ngene: 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/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; }