crypto: marvell/cesa - remove unneeded condition
creq->cache[] is an array inside the struct, it's not a pointer and it can't be NULL. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
06af9b0f49
commit
063327f54e
|
@ -768,7 +768,6 @@ static int mv_cesa_ahash_export(struct ahash_request *req, void *hash,
|
||||||
*len = creq->len;
|
*len = creq->len;
|
||||||
memcpy(hash, creq->state, digsize);
|
memcpy(hash, creq->state, digsize);
|
||||||
memset(cache, 0, blocksize);
|
memset(cache, 0, blocksize);
|
||||||
if (creq->cache)
|
|
||||||
memcpy(cache, creq->cache, creq->cache_ptr);
|
memcpy(cache, creq->cache, creq->cache_ptr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue