Thread (42 messages) 42 messages, 13 authors, 2025-03-13
STALE453d

[PATCH *-next 03/18] crypto: api - Remove needless return in void API crypto_free_tfm()

From: Zijun Hu <hidden>
Date: 2025-02-21 13:05:40
Also in: linux-arch, linux-crypto, linux-gpio, linux-iommu, linux-mm, linux-pm, linux-rdma, linux-wireless, lkml
Subsystem: crypto api, the rest · Maintainers: Herbert Xu, "David S. Miller", Linus Torvalds

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help