crypto: atmel - drop pointless static qualifier in atmel_aes_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 24 Oct 2016 14:51:22 +0000 (14:51 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Nov 2016 00:37:11 +0000 (08:37 +0800)
There is no need to have the 'struct atmel_aes_dev *aes_dd' variable
static since new value always be assigned before use it.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c

index 6b656f4a93783903be37ccdde470ea4c65ea1346..0e3d0d655b9679a113d7934f6566532968a15522 100644 (file)
@@ -2311,7 +2311,7 @@ aes_dd_err:
 
 static int atmel_aes_remove(struct platform_device *pdev)
 {
-       static struct atmel_aes_dev *aes_dd;
+       struct atmel_aes_dev *aes_dd;
 
        aes_dd = platform_get_drvdata(pdev);
        if (!aes_dd)