[PATCH *-next 03/18] crypto: api - Remove needless return in void API crypto_free_tfm()
Zijun Hu
quic_zijuhu at quicinc.com
Fri Feb 21 05:02:08 PST 2025
Remove needless 'return' in void API crypto_free_tfm() since
both the API and crypto_destroy_tfm() are void functions.
Signed-off-by: Zijun Hu <quic_zijuhu at quicinc.com>
---
include/linux/crypto.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index b164da5e129e..90ac1142b1a2 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -446,7 +446,7 @@ void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm);
static inline void crypto_free_tfm(struct crypto_tfm *tfm)
{
- return crypto_destroy_tfm(tfm, tfm);
+ crypto_destroy_tfm(tfm, tfm);
}
/*
--
2.34.1
More information about the linux-mtd
mailing list