Skip to content

Commit

Permalink
crypto: stm32/hash - Remove uninitialized symbol
Browse files Browse the repository at this point in the history
Remove err symbol as this is not used in the thread context
and the variable is not initialized.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
lionel.debieve@st.com authored and Herbert Xu committed Sep 22, 2017
1 parent 677c4f4 commit a502e10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/crypto/stm32/stm32-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,6 @@ static int stm32_hash_cra_sha256_init(struct crypto_tfm *tfm)
static irqreturn_t stm32_hash_irq_thread(int irq, void *dev_id)
{
struct stm32_hash_dev *hdev = dev_id;
int err;

if (HASH_FLAGS_CPU & hdev->flags) {
if (HASH_FLAGS_OUTPUT_READY & hdev->flags) {
Expand All @@ -1084,8 +1083,8 @@ static irqreturn_t stm32_hash_irq_thread(int irq, void *dev_id)
return IRQ_HANDLED;

finish:
/*Finish current request */
stm32_hash_finish_req(hdev->req, err);
/* Finish current request */
stm32_hash_finish_req(hdev->req, 0);

return IRQ_HANDLED;
}
Expand Down

0 comments on commit a502e10

Please sign in to comment.