mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
crypto: marvell/cesa - Remove unnecessary state setting on final
There is no point in setting the hash state after finalisation since the hash state must never be used again. Remove that code. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
4cc871ad01
commit
0e801fe7d8
1 changed files with 1 additions and 4 deletions
|
@ -362,16 +362,13 @@ static void mv_cesa_ahash_complete(struct crypto_async_request *req)
|
|||
if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ &&
|
||||
(creq->base.chain.last->flags & CESA_TDMA_TYPE_MSK) ==
|
||||
CESA_TDMA_RESULT) {
|
||||
__le32 *data = NULL;
|
||||
const void *data;
|
||||
|
||||
/*
|
||||
* Result is already in the correct endianness when the SA is
|
||||
* used
|
||||
*/
|
||||
data = creq->base.chain.last->op->ctx.hash.hash;
|
||||
for (i = 0; i < digsize / 4; i++)
|
||||
creq->state[i] = le32_to_cpu(data[i]);
|
||||
|
||||
memcpy(ahashreq->result, data, digsize);
|
||||
} else {
|
||||
for (i = 0; i < digsize / 4; i++)
|
||||
|
|
Loading…
Add table
Reference in a new issue