Commit 3e5c66c9 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Herbert Xu

crypto: marvell - turn mv_cesa_ahash_init() into a function returning void

The mv_cesa_ahash_init() function always returns 0, and the return
value is anyway never checked. Turn it into a function returning void.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2a8a7857
...@@ -374,7 +374,7 @@ static const struct mv_cesa_req_ops mv_cesa_ahash_req_ops = { ...@@ -374,7 +374,7 @@ static const struct mv_cesa_req_ops mv_cesa_ahash_req_ops = {
.complete = mv_cesa_ahash_complete, .complete = mv_cesa_ahash_complete,
}; };
static int mv_cesa_ahash_init(struct ahash_request *req, static void mv_cesa_ahash_init(struct ahash_request *req,
struct mv_cesa_op_ctx *tmpl, bool algo_le) struct mv_cesa_op_ctx *tmpl, bool algo_le)
{ {
struct mv_cesa_ahash_req *creq = ahash_request_ctx(req); struct mv_cesa_ahash_req *creq = ahash_request_ctx(req);
...@@ -390,8 +390,6 @@ static int mv_cesa_ahash_init(struct ahash_request *req, ...@@ -390,8 +390,6 @@ static int mv_cesa_ahash_init(struct ahash_request *req,
creq->op_tmpl = *tmpl; creq->op_tmpl = *tmpl;
creq->len = 0; creq->len = 0;
creq->algo_le = algo_le; creq->algo_le = algo_le;
return 0;
} }
static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm) static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm)
......
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