summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-02-18 15:49:00 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-28 07:17:58 +0100
commitd9a5289d291874a855dd84763559ff83ad0620c5 (patch)
tree9a1d0bcdba843f3596195a0178fabe247419ac00 /drivers/crypto
parentcrypto: chelsio - Fixed Traffic Stall (diff)
downloadlinux-d9a5289d291874a855dd84763559ff83ad0620c5.tar.xz
linux-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')
-rw-r--r--drivers/crypto/stm32/stm32-hash.c2
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);