Skip to content

Commit 51bdb2f

Browse files
committed
crypto: artpec6 - Use request_complete helpers
Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu <[email protected]> Acked-by: Jesper Nilsson <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 7d19abd commit 51bdb2f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/crypto/axis/artpec6_crypto.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,13 +2143,13 @@ static void artpec6_crypto_task(unsigned long data)
21432143

21442144
list_for_each_entry_safe(req, n, &complete_in_progress,
21452145
complete_in_progress) {
2146-
req->req->complete(req->req, -EINPROGRESS);
2146+
crypto_request_complete(req->req, -EINPROGRESS);
21472147
}
21482148
}
21492149

21502150
static void artpec6_crypto_complete_crypto(struct crypto_async_request *req)
21512151
{
2152-
req->complete(req, 0);
2152+
crypto_request_complete(req, 0);
21532153
}
21542154

21552155
static void
@@ -2161,7 +2161,7 @@ artpec6_crypto_complete_cbc_decrypt(struct crypto_async_request *req)
21612161
scatterwalk_map_and_copy(cipher_req->iv, cipher_req->src,
21622162
cipher_req->cryptlen - AES_BLOCK_SIZE,
21632163
AES_BLOCK_SIZE, 0);
2164-
req->complete(req, 0);
2164+
skcipher_request_complete(cipher_req, 0);
21652165
}
21662166

21672167
static void
@@ -2173,7 +2173,7 @@ artpec6_crypto_complete_cbc_encrypt(struct crypto_async_request *req)
21732173
scatterwalk_map_and_copy(cipher_req->iv, cipher_req->dst,
21742174
cipher_req->cryptlen - AES_BLOCK_SIZE,
21752175
AES_BLOCK_SIZE, 0);
2176-
req->complete(req, 0);
2176+
skcipher_request_complete(cipher_req, 0);
21772177
}
21782178

21792179
static void artpec6_crypto_complete_aead(struct crypto_async_request *req)
@@ -2211,12 +2211,12 @@ static void artpec6_crypto_complete_aead(struct crypto_async_request *req)
22112211
}
22122212
}
22132213

2214-
req->complete(req, result);
2214+
aead_request_complete(areq, result);
22152215
}
22162216

22172217
static void artpec6_crypto_complete_hash(struct crypto_async_request *req)
22182218
{
2219-
req->complete(req, 0);
2219+
crypto_request_complete(req, 0);
22202220
}
22212221

22222222

0 commit comments

Comments
 (0)