Skip to content

Commit

Permalink
crypto: sig - Remove some unused functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiapeng Chong authored and Herbert Xu committed Jul 20, 2023
1 parent 4b97d28 commit 20508b7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions crypto/sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20508b7

Please sign in to comment.