Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 063327f5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Herbert Xu
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 06af9b0f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -768,7 +768,6 @@ static int mv_cesa_ahash_export(struct ahash_request *req, void *hash,
	*len = creq->len;
	memcpy(hash, creq->state, digsize);
	memset(cache, 0, blocksize);
	if (creq->cache)
	memcpy(cache, creq->cache, creq->cache_ptr);

	return 0;