forked from Minki/linux
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>
This commit is contained in:
parent
c6a16f4bbf
commit
6c14a9650b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user