mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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>
This commit is contained in:
parent
85f3fc5446
commit
2d27267b37
|
|
@ -399,8 +399,7 @@ static int stm32_hash_update_cpu(struct stm32_hash_dev *hdev)
|
|||
if (final) {
|
||||
bufcnt = rctx->bufcnt;
|
||||
rctx->bufcnt = 0;
|
||||
err = stm32_hash_xmit_cpu(hdev, rctx->buffer, bufcnt,
|
||||
(rctx->flags & HASH_FLAGS_FINUP));
|
||||
err = stm32_hash_xmit_cpu(hdev, rctx->buffer, bufcnt, 1);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user