提交 b8d9a504 编写于 作者: S Sachin Kamat 提交者: Herbert Xu

crypto: ccp - Remove redundant dev_set_drvdata

Driver core sets it to NULL upon probe failure or release.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 2be9d96b
......@@ -247,7 +247,6 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册