Skip to contentSkip to conversation

crypto: drop pointless static qualifier in atmel_aes_probe()

PATCH In review Wei Yongjun 2 participants 2 messages Oct 24, 2016 – Nov 1, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/crypto/atmel-aes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/atmel-aes.c +1 -1
index 6b656f4..0e3d0d6 100644
@@ -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)
maintainer
#1 lore raw
Quoted 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.

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