mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
crypto: img-hash - Use request_complete helpers
Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
e2b537b770
commit
a712bff023
@ -308,7 +308,7 @@ static void img_hash_finish_req(struct ahash_request *req, int err)
|
||||
DRIVER_FLAGS_CPU | DRIVER_FLAGS_BUSY | DRIVER_FLAGS_FINAL);
|
||||
|
||||
if (req->base.complete)
|
||||
req->base.complete(&req->base, err);
|
||||
ahash_request_complete(req, err);
|
||||
}
|
||||
|
||||
static int img_hash_write_via_dma(struct img_hash_dev *hdev)
|
||||
@ -526,7 +526,7 @@ static int img_hash_handle_queue(struct img_hash_dev *hdev,
|
||||
return res;
|
||||
|
||||
if (backlog)
|
||||
backlog->complete(backlog, -EINPROGRESS);
|
||||
crypto_request_complete(backlog, -EINPROGRESS);
|
||||
|
||||
req = ahash_request_cast(async_req);
|
||||
hdev->req = req;
|
||||
|
Loading…
Reference in New Issue
Block a user