From: Mao Wenan Date: Mon, 18 Feb 2019 14:49:00 +0000 (+0800) Subject: crypto: stm32 - drop pointless static qualifier in stm32_hash_remove() X-Git-Tag: v5.4-rc1~1405^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9a5289d291874a855dd84763559ff83ad0620c5;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index 590d735..4a6cc8a 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);