From: Herbert Xu Date: Tue, 31 Jan 2023 08:02:48 +0000 (+0800) Subject: crypto: sahara - Use request_complete helpers X-Git-Tag: v6.6.7~3330^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=555c5661317e9c3090b9d181106d8bc31dd8e29a;p=platform%2Fkernel%2Flinux-starfive.git crypto: sahara - Use request_complete helpers Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 7ab20fb..dd4c703 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -1049,7 +1049,7 @@ static int sahara_queue_manage(void *data) spin_unlock_bh(&dev->queue_spinlock); if (backlog) - backlog->complete(backlog, -EINPROGRESS); + crypto_request_complete(backlog, -EINPROGRESS); if (async_req) { if (crypto_tfm_alg_type(async_req->tfm) == @@ -1065,7 +1065,7 @@ static int sahara_queue_manage(void *data) ret = sahara_aes_process(req); } - async_req->complete(async_req, ret); + crypto_request_complete(async_req, ret); continue; }