summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2022-07-06 11:17:27 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2022-07-15 10:43:22 +0200
commit6c14a9650b8729882995f5fcd6c62336b40aeb26 (patch)
treebba9cf52ace5205beaeea2752fc695b87f93cc19
parentcrypto: atmel-sha - initialize sha_dd while declaring (diff)
downloadlinux-6c14a9650b8729882995f5fcd6c62336b40aeb26.tar.xz
linux-6c14a9650b8729882995f5fcd6c62336b40aeb26.zip
crypto: atmel-tdes - initialize tdes_dd while declaring
Initialize sha_dd with platform_get_drvdata() when declaring it. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/atmel-tdes.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/atmel-tdes.c b/drivers/crypto/atmel-tdes.c
index a5e78aa08bf0..8b7bc1076e0d 100644
--- a/drivers/crypto/atmel-tdes.c
+++ b/drivers/crypto/atmel-tdes.c
@@ -1263,9 +1263,7 @@ err_tasklet_kill:
static int atmel_tdes_remove(struct platform_device *pdev)
{
- struct atmel_tdes_dev *tdes_dd;
-
- tdes_dd = platform_get_drvdata(pdev);
+ struct atmel_tdes_dev *tdes_dd = platform_get_drvdata(pdev);
spin_lock(&atmel_tdes.lock);
list_del(&tdes_dd->list);