summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-06-11 12:52:01 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2026-07-05 13:23:20 +0800
commitf964df8a1229561c32d4fa76b91260822dc470f1 (patch)
tree2728972a6760ae8a3b6288f342eba52d614fc63e /drivers
parentba199bdaa80b09a7dd92f28751de7f3dbb06c510 (diff)
downloadlinux-next-f964df8a1229561c32d4fa76b91260822dc470f1.tar.gz
linux-next-f964df8a1229561c32d4fa76b91260822dc470f1.zip
crypto: atmel-ecc - drop unused curve id from atmel_ecdh_ctx
->curve_id is only set once, but never used - remove it. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/atmel-ecc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c
index 87e25696400d..51c865884055 100644
--- a/drivers/crypto/atmel-ecc.c
+++ b/drivers/crypto/atmel-ecc.c
@@ -30,7 +30,6 @@ static struct atmel_ecc_driver_data driver_data;
* @client: I2C client device
* @fallback: ECDH fallback used for caller-provided private keys
* @public_key: cached public key for the device-generated private key
- * @curve_id: elliptic curve id
* @do_fallback: true when ECDH operations should use @fallback
*
* The caller must not invoke set_secret() while generate_public_key()
@@ -40,7 +39,6 @@ struct atmel_ecdh_ctx {
struct i2c_client *client;
struct crypto_kpp *fallback;
const u8 *public_key;
- unsigned int curve_id;
bool do_fallback;
};
@@ -240,7 +238,6 @@ static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm)
struct crypto_kpp *fallback;
struct atmel_ecdh_ctx *ctx = kpp_tfm_ctx(tfm);
- ctx->curve_id = ECC_CURVE_NIST_P256;
ctx->client = atmel_ecc_i2c_client_alloc();
if (IS_ERR(ctx->client)) {
pr_err("tfm - i2c_client binding failed\n");