From: Sachin Kamat Date: Fri, 20 Sep 2013 08:36:20 +0000 (-0300) Subject: [media] pci: bt878: Remove redundant pci_set_drvdata X-Git-Tag: firefly_0821_release~176^2~3573^2~1237 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b17a87be20efbeef05bec0f41807004229f2991f;p=firefly-linux-kernel-4.4.55.git [media] pci: bt878: Remove redundant pci_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Acked-by: Manu Abraham Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/bt8xx/bt878.c b/drivers/media/pci/bt8xx/bt878.c index 66eb0baab0e9..2bd24839a2ae 100644 --- a/drivers/media/pci/bt8xx/bt878.c +++ b/drivers/media/pci/bt8xx/bt878.c @@ -563,7 +563,6 @@ static void bt878_remove(struct pci_dev *pci_dev) bt->shutdown = 1; bt878_mem_free(bt); - pci_set_drvdata(pci_dev, NULL); pci_disable_device(pci_dev); return; }