diff mbox series

[*-next,04/18] crypto: scomp - Remove needless return in void API crypto_scomp_free_ctx()

Message ID 20250221-rmv_return-v1-4-cc8dff275827@quicinc.com (mailing list archive)
State New
Headers show
Series Remove weird and needless 'return' for void APIs | expand

Commit Message

Zijun Hu Feb. 21, 2025, 1:02 p.m. UTC
Remove needless 'return' in void API crypto_scomp_free_ctx() since both
the API and crypto_scomp_alg(@tfm)->free_ctx() are void functions.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
---
 include/crypto/internal/scompress.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/crypto/internal/scompress.h b/include/crypto/internal/scompress.h
index 07a10fd2d321..44130680dc0a 100644
--- a/include/crypto/internal/scompress.h
+++ b/include/crypto/internal/scompress.h
@@ -79,7 +79,7 @@  static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm)
 static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm,
 					 void *ctx)
 {
-	return crypto_scomp_alg(tfm)->free_ctx(tfm, ctx);
+	crypto_scomp_alg(tfm)->free_ctx(tfm, ctx);
 }
 
 static inline int crypto_scomp_compress(struct crypto_scomp *tfm,