Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2be9d96b authored by Sachin Kamat's avatar Sachin Kamat Committed by Herbert Xu
Browse files

crypto: crypto4xx - Remove redundant dev_set_drvdata



Driver core sets it to NULL upon probe failure or release.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4e6e0b27
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -724,7 +724,6 @@ static void crypto4xx_stop_all(struct crypto4xx_core_device *core_dev)
	crypto4xx_destroy_pdr(core_dev->dev);
	crypto4xx_destroy_gdr(core_dev->dev);
	crypto4xx_destroy_sdr(core_dev->dev);
	dev_set_drvdata(core_dev->device, NULL);
	iounmap(core_dev->dev->ce_base);
	kfree(core_dev->dev);
	kfree(core_dev);