crypto: stm32/hash - Simplify code
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Jan 2023 00:23:07 +0000 (01:23 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Feb 2023 04:54:55 +0000 (12:54 +0800)
commit2d27267b379f589836949481aec9c9f39dbe1f26
tree9e7e068c95a44b84e07c726c609afbad22b3348e
parent85f3fc5446e5315197529736ddfbda61c2777e06
crypto: stm32/hash - Simplify code

We are passing (rctx->flags & HASH_FLAGS_FINUP) as indicator
for the final request but we already know this to be true since
we are in the (final) arm of an if-statement set from the same
flag. Just open-code it as true.

Acked-by: Lionel Debieve <lionel.debieve@foss.st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-hash.c