diff mbox series

crypto: arm/blake2b - drop unnecessary return statement

Message ID 20210209022816.3405596-1-ebiggers@kernel.org
State New
Headers show
Series crypto: arm/blake2b - drop unnecessary return statement | expand

Commit Message

Eric Biggers Feb. 9, 2021, 2:28 a.m. UTC
From: Eric Biggers <ebiggers@google.com>

Neither crypto_unregister_shashes() nor the module_exit function return
a value, so the explicit 'return' is unnecessary.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 arch/arm/crypto/blake2b-neon-glue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Herbert Xu March 4, 2021, 6:38 a.m. UTC | #1
Eric Biggers <ebiggers@kernel.org> wrote:
> From: Eric Biggers <ebiggers@google.com>

> 

> Neither crypto_unregister_shashes() nor the module_exit function return

> a value, so the explicit 'return' is unnecessary.

> 

> Signed-off-by: Eric Biggers <ebiggers@google.com>

> ---

> arch/arm/crypto/blake2b-neon-glue.c | 4 ++--

> 1 file changed, 2 insertions(+), 2 deletions(-)


Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
diff mbox series

Patch

diff --git a/arch/arm/crypto/blake2b-neon-glue.c b/arch/arm/crypto/blake2b-neon-glue.c
index 34d73200e7fa..4b59d027ba4a 100644
--- a/arch/arm/crypto/blake2b-neon-glue.c
+++ b/arch/arm/crypto/blake2b-neon-glue.c
@@ -85,8 +85,8 @@  static int __init blake2b_neon_mod_init(void)
 
 static void __exit blake2b_neon_mod_exit(void)
 {
-	return crypto_unregister_shashes(blake2b_neon_algs,
-					 ARRAY_SIZE(blake2b_neon_algs));
+	crypto_unregister_shashes(blake2b_neon_algs,
+				  ARRAY_SIZE(blake2b_neon_algs));
 }
 
 module_init(blake2b_neon_mod_init);