提交 c6a16f4b 编写于 作者: C Claudiu Beznea 提交者: Herbert Xu

crypto: atmel-sha - initialize sha_dd while declaring

Initialize sha_dd with platform_get_drvdata() when declaring it.
Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 2e26efb3
......@@ -2666,9 +2666,7 @@ static int atmel_sha_probe(struct platform_device *pdev)
static int atmel_sha_remove(struct platform_device *pdev)
{
struct atmel_sha_dev *sha_dd;
sha_dd = platform_get_drvdata(pdev);
struct atmel_sha_dev *sha_dd = platform_get_drvdata(pdev);
spin_lock(&atmel_sha.lock);
list_del(&sha_dd->list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册