Commit cfac232d authored by Herbert Xu's avatar Herbert Xu

crypto: stm32 - Remove unused hdev->err field

The variable hdev->err is never read so it can be removed.

Also remove a spurious inclusion of linux/crypto.h.
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Tested-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 32e55d03
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
*/ */
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/crypto.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/dmaengine.h> #include <linux/dmaengine.h>
...@@ -183,7 +182,6 @@ struct stm32_hash_dev { ...@@ -183,7 +182,6 @@ struct stm32_hash_dev {
struct ahash_request *req; struct ahash_request *req;
struct crypto_engine *engine; struct crypto_engine *engine;
int err;
unsigned long flags; unsigned long flags;
struct dma_chan *dma_lch; struct dma_chan *dma_lch;
...@@ -894,7 +892,6 @@ static int stm32_hash_hw_init(struct stm32_hash_dev *hdev, ...@@ -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_STR, 0);
stm32_hash_write(hdev, HASH_DIN, 0); stm32_hash_write(hdev, HASH_DIN, 0);
stm32_hash_write(hdev, HASH_IMR, 0); stm32_hash_write(hdev, HASH_IMR, 0);
hdev->err = 0;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment