crypto: sig - Remove some unused functions
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 30 Jun 2023 07:54:24 +0000 (15:54 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Jul 2023 10:15:12 +0000 (22:15 +1200)
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'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5701
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/sig.c

index b48c18ec65cd4ec5c63e39db7f7d75f4b681babf..224c470192977b49fa42eeea9e69a48423a31652 100644 (file)
 
 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)