|
@@ -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;
|
|
|
}
|