Skip to contentSkip to conversation

crypto: qat - remove unused function

PATCH In review Giovanni Cabiddu 2 participants 2 messages Oct 7, 2020 – Oct 30, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: qat - remove unused function

Remove unused function qat_dh_get_params().
This is to fix the following warning when compiling the driver with CC=clang W=1

drivers/crypto/qat/qat_common/qat_asym_algs.c:207:34: warning: unused function 'qat_dh_get_params' [-Wunused-function]

---
 drivers/crypto/qat/qat_common/qat_asym_algs.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/crypto/qat/qat_common/qat_asym_algs.c +0 -5
index 846569ec9066..f112078be868 100644
@@ -204,11 +204,6 @@ static unsigned long qat_dh_fn_id(unsigned int len, bool g2)
 	};
 }
 
-static inline struct qat_dh_ctx *qat_dh_get_params(struct crypto_kpp *tfm)
-{
-	return kpp_tfm_ctx(tfm);
-}
-
 static int qat_dh_compute_value(struct kpp_request *req)
 {
 	struct crypto_kpp *tfm = crypto_kpp_reqtfm(req);
Signature · 1 line
2.26.2
maintainer
#1 lore raw
Quoted 4 lines · Giovanni Cabiddu

Remove unused function qat_dh_get_params().
This is to fix the following warning when compiling the driver with CC=clang W=1

Quoted 8 lines

drivers/crypto/qat/qat_common/qat_asym_algs.c:207:34: warning: unused function 'qat_dh_get_params' [-Wunused-function]

---
 drivers/crypto/qat/qat_common/qat_asym_algs.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