crypto: stm32 - Remove unused hdev->err field
[platform/kernel/linux-starfive.git] / drivers / crypto / stm32 / stm32-hash.c
index e16f9aa..e35fee9 100644 (file)
@@ -7,7 +7,6 @@
  */
 
 #include <linux/clk.h>
-#include <linux/crypto.h>
 #include <linux/delay.h>
 #include <linux/dma-mapping.h>
 #include <linux/dmaengine.h>
@@ -183,7 +182,6 @@ struct stm32_hash_dev {
        struct ahash_request    *req;
        struct crypto_engine    *engine;
 
-       int                     err;
        unsigned long           flags;
 
        struct dma_chan         *dma_lch;
@@ -894,7 +892,6 @@ static int stm32_hash_hw_init(struct stm32_hash_dev *hdev,
                stm32_hash_write(hdev, HASH_STR, 0);
                stm32_hash_write(hdev, HASH_DIN, 0);
                stm32_hash_write(hdev, HASH_IMR, 0);
-               hdev->err = 0;
        }
 
        return 0;