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

From: Zijun Hu
Date: Fri Feb 21 2025 - 08:08:49 EST


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@xxxxxxxxxxx>
---
include/crypto/internal/scompress.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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,

--
2.34.1