crypto: safexcel - Use request_complete helpers
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 Jan 2023 08:02:29 +0000 (16:02 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 13 Feb 2023 10:34:49 +0000 (18:34 +0800)
Use the request_complete helpers instead of calling the completion
function directly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c

index baff012..6858753 100644 (file)
@@ -850,7 +850,7 @@ handle_req:
                        goto request_failed;
 
                if (backlog)
-                       backlog->complete(backlog, -EINPROGRESS);
+                       crypto_request_complete(backlog, -EINPROGRESS);
 
                /* In case the send() helper did not issue any command to push
                 * to the engine because the input data was cached, continue to
@@ -1039,7 +1039,7 @@ handle_results:
 
                if (should_complete) {
                        local_bh_disable();
-                       req->complete(req, ret);
+                       crypto_request_complete(req, ret);
                        local_bh_enable();
                }