From: Herbert Xu Date: Tue, 31 Jan 2023 08:02:23 +0000 (+0800) Subject: crypto: hifn_795x - Use request_complete helpers X-Git-Tag: v6.6.17~5349^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17fcc82eebd92a510b2124ae5544491af950a315;p=platform%2Fkernel%2Flinux-rpi.git crypto: hifn_795x - 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/hifn_795x.c b/drivers/crypto/hifn_795x.c index 7e7a8f0..5a7f661 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -1705,7 +1705,7 @@ static void hifn_process_ready(struct skcipher_request *req, int error) hifn_cipher_walk_exit(&rctx->walk); } - req->base.complete(&req->base, error); + skcipher_request_complete(req, error); } static void hifn_clear_rings(struct hifn_device *dev, int error) @@ -2054,7 +2054,7 @@ static int hifn_process_queue(struct hifn_device *dev) break; if (backlog) - backlog->complete(backlog, -EINPROGRESS); + crypto_request_complete(backlog, -EINPROGRESS); req = skcipher_request_cast(async_req);