From 9faaca759390bba5aeeb049d31f74806e78137e1 Mon Sep 17 00:00:00 2001 From: Cristian Stoica Date: Mon, 8 Feb 2016 16:00:22 +0200 Subject: [PATCH 31/48] cryptodev: remove not used local variables Signed-off-by: Cristian Stoica --- crypto/engine/eng_cryptodev.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c index 163a37d..b13bf8c 100644 --- a/crypto/engine/eng_cryptodev.c +++ b/crypto/engine/eng_cryptodev.c @@ -1635,7 +1635,6 @@ static int cryptodev_digest_final(EVP_MD_CTX *ctx, unsigned char *md) static int cryptodev_digest_cleanup(EVP_MD_CTX *ctx) { struct dev_crypto_state *state = ctx->md_data; - struct session_op *sess = &state->d_sess; if (state == NULL) { return 0; @@ -3952,7 +3951,6 @@ static int cryptodev_dh_keygen(DH *dh) int ret = 1, q_len = 0; unsigned char *q = NULL, *g = NULL, *s = NULL, *w = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; - int generate_new_key = 1; if (dh->priv_key) priv_key = dh->priv_key; @@ -4074,11 +4072,9 @@ cryptodev_dh_compute_key_async(unsigned char *key, const BIGNUM *pub_key, { struct crypt_kop *kop = malloc(sizeof(struct crypt_kop)); int ret = 1; - int fd, p_len; + int p_len; unsigned char *padded_pub_key = NULL, *p = NULL; - fd = *(int *)cookie->eng_handle; - memset(kop, 0, sizeof(struct crypt_kop)); kop->crk_op = CRK_DH_COMPUTE_KEY; /* inputs: dh->priv_key pub_key dh->p key */ -- 2.7.3