]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
crypto: marvell - turn mv_cesa_ahash_init() into a function returning void
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Aug 2016 09:03:16 +0000 (11:03 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:29 +0000 (18:47 +0800)
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>
drivers/crypto/marvell/hash.c

index 0d7f5f9ace143e9bbc2968c86b803e73d522a379..729166435a8d64f2eb0d79f6b049cec57e5c7e0d 100644 (file)
@@ -374,7 +374,7 @@ static const struct mv_cesa_req_ops mv_cesa_ahash_req_ops = {
        .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_ahash_req *creq = ahash_request_ctx(req);
@@ -390,8 +390,6 @@ static int mv_cesa_ahash_init(struct ahash_request *req,
        creq->op_tmpl = *tmpl;
        creq->len = 0;
        creq->algo_le = algo_le;
-
-       return 0;
 }
 
 static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm)