From d781728a1593354f37f9b806ba3482a413f20498 Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Sat, 21 Dec 2013 12:52:30 +0530 Subject: [PATCH] crypto: talitos - 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/talitos.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index a3d2e9b88c41..5967667e1a8f 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -2495,8 +2495,6 @@ static int talitos_remove(struct platform_device *ofdev) iounmap(priv->reg); - dev_set_drvdata(dev, NULL); - kfree(priv); return 0;