Commit ea2fbe3b authored by Herbert Xu's avatar Herbert Xu

crypto: nitrox - Use request_complete helpers

Use the request_complete helpers instead of calling the completion
function directly.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b34a6416
...@@ -199,7 +199,7 @@ static void nitrox_aead_callback(void *arg, int err) ...@@ -199,7 +199,7 @@ static void nitrox_aead_callback(void *arg, int err)
err = -EINVAL; err = -EINVAL;
} }
areq->base.complete(&areq->base, err); aead_request_complete(areq, err);
} }
static inline bool nitrox_aes_gcm_assoclen_supported(unsigned int assoclen) static inline bool nitrox_aes_gcm_assoclen_supported(unsigned int assoclen)
...@@ -434,7 +434,7 @@ static void nitrox_rfc4106_callback(void *arg, int err) ...@@ -434,7 +434,7 @@ static void nitrox_rfc4106_callback(void *arg, int err)
err = -EINVAL; err = -EINVAL;
} }
areq->base.complete(&areq->base, err); aead_request_complete(areq, err);
} }
static int nitrox_rfc4106_enc(struct aead_request *areq) static int nitrox_rfc4106_enc(struct aead_request *areq)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment