crypto: marvell/cesa - remove unneeded condition
Subsystems (3)
PATCH 1/1 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 <[email protected]>
drivers/crypto/marvell/hash.c +1 -2
@@ -768,8 +768,7 @@ 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); +memcpy (cache, creq->cache, creq->cache_ptr);return 0 ; }
Quoted 4 lines · On Mon, 21 Mar 2016 12:03:43 +0300 Dan Carpenter <[email protected]>…
creq->cache[] is an array inside the struct, it's not a pointer and it can't be NULL.
Signed-off-by Dan Carpenter <[email protected]>
Acked-by Boris Brezillon <[email protected]>
Quoted 15 lines
drivers/crypto/marvell/hash.c +1
-2@@ -768,8 +768,7 @@ 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); +memcpy (cache, creq->cache, creq->cache_ptr);return 0 ; }
Signature · 3 lines
Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Quoted 4 lines · Dan Carpenter
creq->cache[] is an array inside the struct, it's not a pointer and it can't be NULL.
Signed-off-by Dan Carpenter <[email protected]>
Applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt