summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2022-03-08 15:55:37 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-03-14 14:45:45 +1200
commitc6ded03bcac9dde5bc7b4a1121efa050a28118b0 (patch)
treeafa974941053db3cd40ca4fe997d98b4ebd0cf90 /crypto
parent7f0f1f3ef62ed7a40e30aff28115bd94c4211d1d (diff)
downloadlinux-c6ded03bcac9dde5bc7b4a1121efa050a28118b0.tar.gz
linux-c6ded03bcac9dde5bc7b4a1121efa050a28118b0.tar.bz2
linux-c6ded03bcac9dde5bc7b4a1121efa050a28118b0.zip
crypto: dh - Remove the unused function dh_safe_prime_dh_alg()
Fix the following W=1 kernel warnings: crypto/dh.c:311:31: warning: unused function 'dh_safe_prime_dh_alg' [-Wunused-function] Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/dh.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/crypto/dh.c b/crypto/dh.c
index cca289477485..4406aeb1ff61 100644
--- a/crypto/dh.c
+++ b/crypto/dh.c
@@ -308,12 +308,6 @@ static inline struct dh_safe_prime_instance_ctx *dh_safe_prime_instance_ctx(
return kpp_instance_ctx(kpp_alg_instance(tfm));
}
-static inline struct kpp_alg *dh_safe_prime_dh_alg(
- struct dh_safe_prime_tfm_ctx *ctx)
-{
- return crypto_kpp_alg(ctx->dh_tfm);
-}
-
static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm)
{
struct dh_safe_prime_instance_ctx *inst_ctx =