Skip to content

Commit a712bff

Browse files
committed
crypto: img-hash - Use request_complete helpers
Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu <[email protected]>
1 parent e2b537b commit a712bff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/img-hash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ static void img_hash_finish_req(struct ahash_request *req, int err)
308308
DRIVER_FLAGS_CPU | DRIVER_FLAGS_BUSY | DRIVER_FLAGS_FINAL);
309309

310310
if (req->base.complete)
311-
req->base.complete(&req->base, err);
311+
ahash_request_complete(req, err);
312312
}
313313

314314
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,
526526
return res;
527527

528528
if (backlog)
529-
backlog->complete(backlog, -EINPROGRESS);
529+
crypto_request_complete(backlog, -EINPROGRESS);
530530

531531
req = ahash_request_cast(async_req);
532532
hdev->req = req;

0 commit comments

Comments
 (0)