aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-09 05:03:16 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2016-08-09 06:47:29 -0400
commit3e5c66c9c31afecf1d6f7ef4ffc50ac3c1ff3c7c (patch)
tree76a6dab7f4a6bae92453bc07ae2c25ec1c2d5c69
parent2a8a78573b346b1da5f1b544985d65d1e08a6148 (diff)
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/marvell/hash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/marvell/hash.c b/drivers/crypto/marvell/hash.c
index 0d7f5f9ace14..729166435a8d 100644
--- a/drivers/crypto/marvell/hash.c
+++ b/drivers/crypto/marvell/hash.c
@@ -374,7 +374,7 @@ static const struct mv_cesa_req_ops mv_cesa_ahash_req_ops = {
374 .complete = mv_cesa_ahash_complete, 374 .complete = mv_cesa_ahash_complete,
375}; 375};
376 376
377static int mv_cesa_ahash_init(struct ahash_request *req, 377static void mv_cesa_ahash_init(struct ahash_request *req,
378 struct mv_cesa_op_ctx *tmpl, bool algo_le) 378 struct mv_cesa_op_ctx *tmpl, bool algo_le)
379{ 379{
380 struct mv_cesa_ahash_req *creq = ahash_request_ctx(req); 380 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 creq->op_tmpl = *tmpl; 390 creq->op_tmpl = *tmpl;
391 creq->len = 0; 391 creq->len = 0;
392 creq->algo_le = algo_le; 392 creq->algo_le = algo_le;
393
394 return 0;
395} 393}
396 394
397static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm) 395static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm)