diff options
author | Mao Wenan <maowenan@huawei.com> | 2019-02-18 22:49:00 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-02-28 14:17:58 +0800 |
commit | d9a5289d291874a855dd84763559ff83ad0620c5 (patch) | |
tree | 9a1d0bcdba843f3596195a0178fabe247419ac00 /drivers/crypto/stm32/stm32-hash.c | |
parent | 8cd9d183731a8b54e7ca40de1c72e3c6bec40113 (diff) | |
download | linux-stable-d9a5289d291874a855dd84763559ff83ad0620c5.tar.gz linux-stable-d9a5289d291874a855dd84763559ff83ad0620c5.tar.bz2 linux-stable-d9a5289d291874a855dd84763559ff83ad0620c5.zip |
crypto: stm32 - drop pointless static qualifier in stm32_hash_remove()
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>
Diffstat (limited to 'drivers/crypto/stm32/stm32-hash.c')
-rw-r--r-- | drivers/crypto/stm32/stm32-hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index 590d7352837e..4a6cc8a3045d 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -1564,7 +1564,7 @@ err_engine: 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); |