1 From 8cd09ffdfd7d9c25605401f1c0947b1b4acc6e57 Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Mon, 8 Feb 2016 16:00:22 +0200
4 Subject: [PATCH 31/48] cryptodev: remove not used local variables
6 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
8 crypto/engine/eng_cryptodev.c | 6 +-----
9 1 file changed, 1 insertion(+), 5 deletions(-)
11 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
12 index 30713e5..2734500 100644
13 --- a/crypto/engine/eng_cryptodev.c
14 +++ b/crypto/engine/eng_cryptodev.c
15 @@ -1634,7 +1634,6 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md)
16 static int cryptodev_digest_cleanup(EVP_MD_CTX *ctx)
18 struct dev_crypto_state *state = ctx->md_data;
19 - struct session_op *sess = &state->d_sess;
23 @@ -3939,7 +3938,6 @@ static int cryptodev_dh_keygen(DH *dh)
24 int ret = 1, q_len = 0;
25 unsigned char *q = NULL, *g = NULL, *s = NULL, *w = NULL;
26 BIGNUM *pub_key = NULL, *priv_key = NULL;
27 - int generate_new_key = 1;
30 priv_key = dh->priv_key;
31 @@ -4061,11 +4059,9 @@ cryptodev_dh_compute_key_async(unsigned char *key, const BIGNUM *pub_key,
33 struct crypt_kop *kop = malloc(sizeof(struct crypt_kop));
37 unsigned char *padded_pub_key = NULL, *p = NULL;
39 - fd = *(int *)cookie->eng_handle;
41 memset(kop, 0, sizeof(struct crypt_kop));
42 kop->crk_op = CRK_DH_COMPUTE_KEY;
43 /* inputs: dh->priv_key pub_key dh->p key */