mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-31 03:37:46 +08:00
crypto: mxs-dcp - Use request_complete helpers
Use the request_complete helpers instead of calling the completion function directly. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -413,11 +413,11 @@ static int dcp_chan_thread_aes(void *data)
|
||||
set_current_state(TASK_RUNNING);
|
||||
|
||||
if (backlog)
|
||||
backlog->complete(backlog, -EINPROGRESS);
|
||||
crypto_request_complete(backlog, -EINPROGRESS);
|
||||
|
||||
if (arq) {
|
||||
ret = mxs_dcp_aes_block_crypt(arq);
|
||||
arq->complete(arq, ret);
|
||||
crypto_request_complete(arq, ret);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -709,11 +709,11 @@ static int dcp_chan_thread_sha(void *data)
|
||||
set_current_state(TASK_RUNNING);
|
||||
|
||||
if (backlog)
|
||||
backlog->complete(backlog, -EINPROGRESS);
|
||||
crypto_request_complete(backlog, -EINPROGRESS);
|
||||
|
||||
if (arq) {
|
||||
ret = dcp_sha_req_to_buf(arq);
|
||||
arq->complete(arq, ret);
|
||||
crypto_request_complete(arq, ret);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user