From b8d9a50412ecab1621603cb42752a52855d8194e Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Sat, 21 Dec 2013 12:52:29 +0530 Subject: crypto: ccp - Remove redundant dev_set_drvdata Driver core sets it to NULL upon probe failure or release. Signed-off-by: Sachin Kamat Signed-off-by: Herbert Xu --- drivers/crypto/ccp/ccp-pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/ccp/ccp-pci.c b/drivers/crypto/ccp/ccp-pci.c index 1fbeaf1856a8..f08c16d370cd 100644 --- a/drivers/crypto/ccp/ccp-pci.c +++ b/drivers/crypto/ccp/ccp-pci.c @@ -247,7 +247,6 @@ e_bar0: e_device: pci_disable_device(pdev); - dev_set_drvdata(dev, NULL); e_regions: pci_release_regions(pdev); @@ -273,7 +272,6 @@ static void ccp_pci_remove(struct pci_dev *pdev) pci_iounmap(pdev, ccp->io_map); pci_disable_device(pdev); - dev_set_drvdata(dev, NULL); pci_release_regions(pdev); -- cgit v1.2.3