mirror of
https://github.com/torvalds/linux.git
synced 2025-11-03 18:20:25 +02:00
crypto: atmel-sha - initialize sha_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
2e26efb384
commit
c6a16f4bbf
1 changed files with 1 additions and 3 deletions
|
|
@ -2666,9 +2666,7 @@ static int atmel_sha_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
static int atmel_sha_remove(struct platform_device *pdev)
|
static int atmel_sha_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct atmel_sha_dev *sha_dd;
|
struct atmel_sha_dev *sha_dd = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
sha_dd = platform_get_drvdata(pdev);
|
|
||||||
|
|
||||||
spin_lock(&atmel_sha.lock);
|
spin_lock(&atmel_sha.lock);
|
||||||
list_del(&sha_dd->list);
|
list_del(&sha_dd->list);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue