diff options
author | Eric Biggers <ebiggers@google.com> | 2020-05-01 18:42:29 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-05-08 07:32:12 +0200 |
commit | 13855fd8ce641e567c1b972048b5fd1451984e88 (patch) | |
tree | 4fb01cb99ef4e42ba075ebd197084d2c59fa10b0 /include/crypto/sha256_base.h | |
parent | crypto - Avoid free() namespace collision (diff) | |
download | linux-13855fd8ce641e567c1b972048b5fd1451984e88.tar.xz linux-13855fd8ce641e567c1b972048b5fd1451984e88.zip |
crypto: lib/sha256 - return void
The SHA-256 / SHA-224 library functions can't fail, so remove the
useless return value.
Also long as the declarations are being changed anyway, also fix some
parameter names in the declarations to match the definitions.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/sha256_base.h')
-rw-r--r-- | include/crypto/sha256_base.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/crypto/sha256_base.h b/include/crypto/sha256_base.h index cea60cff80bd..6ded110783ae 100644 --- a/include/crypto/sha256_base.h +++ b/include/crypto/sha256_base.h @@ -22,14 +22,16 @@ static inline int sha224_base_init(struct shash_desc *desc) { struct sha256_state *sctx = shash_desc_ctx(desc); - return sha224_init(sctx); + sha224_init(sctx); + return 0; } static inline int sha256_base_init(struct shash_desc *desc) { struct sha256_state *sctx = shash_desc_ctx(desc); - return sha256_init(sctx); + sha256_init(sctx); + return 0; } static inline int sha256_base_do_update(struct shash_desc *desc, |