crypto: drop pointless static qualifier in atmel_aes_probe()
Subsystems (2)
PATCH 1/1 crypto: drop pointless static qualifier in atmel_aes_probe()
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/atmel-aes.c +1 -1
@@ -2311,7 +2311,7 @@ static int atmel_aes_probe(struct platform_device *pdev)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)
Herbert Xu
maintainerQuoted 6 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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 <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt