Skip to contentSkip to conversation

crypto: sig - Remove some unused functions

PATCH In review Jiapeng Chong 2 participants 2 messages Jun 30, 2023 – Jul 14, 2023 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: sig - Remove some unused functions

These functions are defined in the sig.c file, but not called elsewhere, so delete these unused functions.

crypto/sig.c:24:34: warning: unused function '__crypto_sig_tfm'.

---
 crypto/sig.c | 5 -----
 1 file changed, 5 deletions(-)
crypto/sig.c +0 -5
index b48c18ec65cd..224c47019297 100644
@@ -21,11 +21,6 @@
 
 static const struct crypto_type crypto_sig_type;
 
-static inline struct crypto_sig *__crypto_sig_tfm(struct crypto_tfm *tfm)
-{
-	return container_of(tfm, struct crypto_sig, base);
-}
-
 static int crypto_sig_init_tfm(struct crypto_tfm *tfm)
 {
 	if (tfm->__crt_alg->cra_type != &crypto_sig_type)
Signature · 1 line
2.20.1.7.g153144c
maintainer
#1 lore raw
Quoted 11 lines · Jiapeng Chong

These functions are defined in the sig.c file, but not called elsewhere, so delete these unused functions.

crypto/sig.c:24:34: warning: unused function '__crypto_sig_tfm'.

---
 crypto/sig.c | 5 -----
 1 file changed, 5 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt