[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220706091727.831036-1-claudiu.beznea@microchip.com>
Date: Wed, 6 Jul 2022 12:17:27 +0300
From: Claudiu Beznea <claudiu.beznea@...rochip.com>
To: <herbert@...dor.apana.org.au>, <davem@...emloft.net>,
<nicolas.ferre@...rochip.com>, <alexandre.belloni@...tlin.com>
CC: <linux-crypto@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
Claudiu Beznea <claudiu.beznea@...rochip.com>
Subject: [PATCH] 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@...rochip.com>
---
Hi,
This patch is based on patch at [1].
[1] https://patchwork.kernel.org/project/linux-crypto/patch/20220705205144.131702-3-u.kleine-koenig@pengutronix.de
Thank you,
Claudiu Beznea
drivers/crypto/atmel-tdes.c | 4 +---
1 file changed, 1 insertion(+), 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 @@ static int atmel_tdes_probe(struct platform_device *pdev)
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);
--
2.33.0
Powered by blists - more mailing lists