Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -4
+1 -4
drivers/crypto/marvell/cesa/hash.c
··· 362 362 if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ && 363 363 (creq->base.chain.last->flags & CESA_TDMA_TYPE_MSK) == 364 364 CESA_TDMA_RESULT) { 365 - __le32 *data = NULL; 365 + const void *data; 366 366 367 367 /* 368 368 * Result is already in the correct endianness when the SA is 369 369 * used 370 370 */ 371 371 data = creq->base.chain.last->op->ctx.hash.hash; 372 - for (i = 0; i < digsize / 4; i++) 373 - creq->state[i] = le32_to_cpu(data[i]); 374 - 375 372 memcpy(ahashreq->result, data, digsize); 376 373 } else { 377 374 for (i = 0; i < digsize / 4; i++)