Skip to content

Commit

Permalink
crypto: atmel - drop pointless static qualifier in atmel_aes_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Herbert Xu committed Nov 1, 2016
1 parent 2cc7515 commit fc78334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/atmel-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc78334

Please sign in to comment.