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-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d9a5289d291874a855dd84763559ff83ad0620c5;p=linux.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 590d7352837e5..4a6cc8a3045d4 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);