[PATCH *-next 04/18] crypto: scomp - Remove needless return in void API crypto_scomp_free_ctx()
Zijun Hu
quic_zijuhu at quicinc.com
Fri Feb 21 05:02:09 PST 2025
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 at quicinc.com>
---
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
More information about the linux-mtd
mailing list