Skip to contentSkip to conversation

crypto: arm/blake2b - drop unnecessary return statement

PATCH In review Eric Biggers 2 participants 2 messages Feb 9, 2021 – Mar 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: arm/blake2b - drop unnecessary return statement

From: Eric Biggers <[email protected]>

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

---
 arch/arm/crypto/blake2b-neon-glue.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/crypto/blake2b-neon-glue.c +2 -2
index 34d73200e7fa..4b59d027ba4a 100644
@@ -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);
Signature · 1 line
2.30.0.478.g8a0d178c01-goog
maintainer
#1 lore raw
Quoted 9 lines · Eric Biggers

From: Eric Biggers <[email protected]>

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

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

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

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt