Skip to content

Commit

Permalink
crypto: stm32 - drop pointless static qualifier in stm32_hash_remove()
Browse files Browse the repository at this point in the history
There is no need to have the struct stm32_hash_dev *hdev static
since new value always be assigned before use it.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Mao Wenan authored and Herbert Xu committed Feb 28, 2019
1 parent 8cd9d18 commit d9a5289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/stm32/stm32-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ static int stm32_hash_probe(struct platform_device *pdev)

static int stm32_hash_remove(struct platform_device *pdev)
{
static struct stm32_hash_dev *hdev;
struct stm32_hash_dev *hdev;
int ret;

hdev = platform_get_drvdata(pdev);
Expand Down

0 comments on commit d9a5289

Please sign in to comment.