crypto: hash - Use crypto_request_complete
Use the crypto_request_complete helper instead of calling the completion function directly. This patch also removes the voodoo programming previously used for unaligned ahash operations and replaces it with a sub-request. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -199,7 +199,7 @@ static inline void *ahash_request_ctx_dma(struct ahash_request *req)
|
||||
|
||||
static inline void ahash_request_complete(struct ahash_request *req, int err)
|
||||
{
|
||||
req->base.complete(&req->base, err);
|
||||
crypto_request_complete(&req->base, err);
|
||||
}
|
||||
|
||||
static inline u32 ahash_request_flags(struct ahash_request *req)
|
||||
|
||||
Reference in New Issue
Block a user